ListO
Señor Member
- Local time
- Today, 23:57
- Joined
- Feb 2, 2000
- Messages
- 167
I'm, trying to make a query work which searches for one or more keywords.
The form which calls the query has an input textbox. I have code which strips and parses this input and concatenates it into a string with asterisks, etc. If the input textbox contains
dog bark loud
the string ends up as
"*dog*" OR LIKE "*bark*" OR LIKE "*loud*"
I thought I could enter this into the criteria of the query as:
Like [forms]![formname].[searchstring]
But this pulls up nothing. I've experimented with a dozen variations of the above, including trying to get the searchstring into the text of the SQL statement, but I can't make it work.
Where have I gone wrong?
The form which calls the query has an input textbox. I have code which strips and parses this input and concatenates it into a string with asterisks, etc. If the input textbox contains
dog bark loud
the string ends up as
"*dog*" OR LIKE "*bark*" OR LIKE "*loud*"
I thought I could enter this into the criteria of the query as:
Like [forms]![formname].[searchstring]
But this pulls up nothing. I've experimented with a dozen variations of the above, including trying to get the searchstring into the text of the SQL statement, but I can't make it work.
Where have I gone wrong?