When I run the following code I get this error Syntax error (missing operator) in query expression 'validation='countryCode' AND'.
Code:
strSql = "SELECT * FROM ValidationList WHERE validation=" & SQLText("countryCode" & " AND order=" & SQLNumber("1"
countryCodes.Open strSql, gConnection, adOpenStatic, adLockOptimistic
I'm not sure what the problem is and therefore I'm not sure how to change this code.
Thanks in advance for the help.
Roslyn
Code:
strSql = "SELECT * FROM ValidationList WHERE validation=" & SQLText("countryCode" & " AND order=" & SQLNumber("1"
countryCodes.Open strSql, gConnection, adOpenStatic, adLockOptimistic
I'm not sure what the problem is and therefore I'm not sure how to change this code.
Thanks in advance for the help.
Roslyn