I have a select query that has filenames listed. I would like to use the Like Operator to select only those filenames with certain bits of string.
For example: In the Criteria area of a query Like "*Defense*" selects all filenames with the word Defense successfully.
However, I would like to select the key word from a combo box and use it in the Like expression.
For example:
Like "* '&Forms![View Selected Plays]![Play Type]&' *"
The code above does not return any results even if the term Defense is selected in the combo box.
I am sure this is a quotes, single quote, *, % type problem, but every combination I try yields no results.
Thanks.
For example: In the Criteria area of a query Like "*Defense*" selects all filenames with the word Defense successfully.
However, I would like to select the key word from a combo box and use it in the Like expression.
For example:
Like "* '&Forms![View Selected Plays]![Play Type]&' *"
The code above does not return any results even if the term Defense is selected in the combo box.
I am sure this is a quotes, single quote, *, % type problem, but every combination I try yields no results.
Thanks.