I am trying to pass an string such as Lab1 AND Lab2 to the criteria of a query.
The string will come from a textbox on a form. The user will enter something like Lab3 AND Lab5 AND Lab6 to the textbox. When the query is run, it should read the textbox and use it for the criteria of the Lab field.
I have the following for the criteria in the query:
[Forms]![frmLab]![TxtLabs]
It works if the user types Lab1, but it does not return any records if the user types Lab1 AND Lab2
Why does it not work with the AND?
The string will come from a textbox on a form. The user will enter something like Lab3 AND Lab5 AND Lab6 to the textbox. When the query is run, it should read the textbox and use it for the criteria of the Lab field.
I have the following for the criteria in the query:
[Forms]![frmLab]![TxtLabs]
It works if the user types Lab1, but it does not return any records if the user types Lab1 AND Lab2
Why does it not work with the AND?