Hi all!
I'm trying to find a way how can I use a list (which I have currently stored in a table) in a SQL WHERE clause.
What I mean is that I have this SQL clause which sets a check box if town name matches any of the 3 town names in the clause...
My question is how could I change the "static" town names in the clause to variable with the town names from a list I have stored in a table (table is just list of towns nothing else).
Would highly appreciate if anyone would be able to help me
Thanks a lot
Joni
I'm trying to find a way how can I use a list (which I have currently stored in a table) in a SQL WHERE clause.
What I mean is that I have this SQL clause which sets a check box if town name matches any of the 3 town names in the clause...
Code:
SQL2 = "UPDATE tblImport SET Local = -1 WHERE Town = 'VANTAA'
OR Town = 'HELSINKI' OR Town = 'ESPOO';"
My question is how could I change the "static" town names in the clause to variable with the town names from a list I have stored in a table (table is just list of towns nothing else).
Would highly appreciate if anyone would be able to help me

Thanks a lot
Joni