G
Guest
When a user hits a cmd button, I want the change the recordsource of the
form but it is based on criteria entered by the user. It says I have syntax
error. I think it is about using the quotations marks (i.e. "Robert") in the
syntax. How do I get around this? Thanks for any help.
strSQL = "SELECT [Employment CrossMatch].*, [Employment CrossMatch].SendBack
FROM [Employment CrossMatch]WHERE ((([Employment
CrossMatch].ESDStaffName)="Robert")) OR ((([Employment
CrossMatch].SendBack)="FAX"));"
Form.RecordSource = strSQL
form but it is based on criteria entered by the user. It says I have syntax
error. I think it is about using the quotations marks (i.e. "Robert") in the
syntax. How do I get around this? Thanks for any help.
strSQL = "SELECT [Employment CrossMatch].*, [Employment CrossMatch].SendBack
FROM [Employment CrossMatch]WHERE ((([Employment
CrossMatch].ESDStaffName)="Robert")) OR ((([Employment
CrossMatch].SendBack)="FAX"));"
Form.RecordSource = strSQL