Hi all,
I'm having trouble with my syntax in an SQL statement that passes variables
I'm trying to do this:
SELECT * FROM MyTable WHERE ID >= var1 AND < var2
I'm having probs with the single & double quotation marks that separate the vars from the statement proper
I got something like this:
SQL = "Select * from MyTable Where ID >= ' " & var1 & ' " AND < ' " & var2
which is not correct
If anybody can correct this statement I shall be very pleased
I'm having trouble with my syntax in an SQL statement that passes variables
I'm trying to do this:
SELECT * FROM MyTable WHERE ID >= var1 AND < var2
I'm having probs with the single & double quotation marks that separate the vars from the statement proper
I got something like this:
SQL = "Select * from MyTable Where ID >= ' " & var1 & ' " AND < ' " & var2
which is not correct
If anybody can correct this statement I shall be very pleased
