J
jjw152
Guest
I'm trying to pass a text box value on a report to a SQL criteria. This is the code:
sqlstate = "Select * From tblContractorsCodeQuery WHERE (tblContractorsCodeQuery.[Last Name] = '"& last &'" )"
last = the the control on the form. It is a text value. I just can't get the syntax right.
Thanks!
sqlstate = "Select * From tblContractorsCodeQuery WHERE (tblContractorsCodeQuery.[Last Name] = '"& last &'" )"
last = the the control on the form. It is a text value. I just can't get the syntax right.
Thanks!