I'm having a horrible time getting the syntax correct on converting this working string:
"WHERE(((tblInst.Bank_No)=1)AND((tblInst.Teller_No)=2)AND((tblInst.Window_No)=3));"
To
A string with the variables Bank, Tel, & Win in place of the numbers, like:
"WHERE (tblInst.Bank_No)=" & Bank And (tblInst.Teller_No) = " & Tel AND (tblInst.Window_No)=" & Win & ";"
I have tried many different permutations of more parentheses, single quotes, and double quotes, keeps returning a syntax or missing operator error.
Any help appreciated.
"WHERE(((tblInst.Bank_No)=1)AND((tblInst.Teller_No)=2)AND((tblInst.Window_No)=3));"
To
A string with the variables Bank, Tel, & Win in place of the numbers, like:
"WHERE (tblInst.Bank_No)=" & Bank And (tblInst.Teller_No) = " & Tel AND (tblInst.Window_No)=" & Win & ";"
I have tried many different permutations of more parentheses, single quotes, and double quotes, keeps returning a syntax or missing operator error.
Any help appreciated.