I have the following peace of code
"where table.field in ('field1', 'field2') ")
i need to make a string that i can put into my in statement how do i build a correct string to use inside the sql statement
User Profile
Collapse
-
Hello and thank you for your help.
I figured out in part now i have a problem with building my string
currently i have what you suggested and its working
my example:
"where SOHeader.OrdNbr in ('AL000005', 'AL000006') ")
I have an indefinite number of order numbers and i'm trying to build a string to put into my sql and i cant figure that part out. I have the building of the string inside a do... -
In
Beginner looking for help.
I have a unlimitted amount of values that i would like to compare against a field in a database. I was told to use an "IN" stetement against a string. I cant figure out the correct syntax
"where table.field in (field1, field2, field3) ")
whats the correct syntax for Visual Basic?
No activity results to display
Show More
Leave a comment: