Creative2
Active member
Hi guys,
I have following codes in my application:
Dim PartNumber as String
PartNumber=lstResults.Selecteditem (List box, assume assigning a value "XXXXXX" to the variable)
Dim GetPart As String
GetPart="Select PartNumber from Parts where PartNumber=" & PartNumber (Variable)
when I execute the query I get the following error:
Invalid Column Name: XXXXXX (Value of variable PartNumber)
Anyone knows why this happening??
I would really appreciate your help.
Jazz
I have following codes in my application:
Dim PartNumber as String
PartNumber=lstResults.Selecteditem (List box, assume assigning a value "XXXXXX" to the variable)
Dim GetPart As String
GetPart="Select PartNumber from Parts where PartNumber=" & PartNumber (Variable)
when I execute the query I get the following error:
Invalid Column Name: XXXXXX (Value of variable PartNumber)
Anyone knows why this happening??
I would really appreciate your help.
Jazz