Keyword Search Query

TylerTand

Registered User.
Local time
Yesterday, 16:45
Joined
Aug 31, 2007
Messages
95
I would like to have a search box in which someone can type anything and it will search through a few tables to see if this word appears, and then return information from that record so I know who it belongs to. I have a query written that has all of the fields from all of the tables that I want the search to cover, but now I am having trouble connecting a button to the query so that it runs the query and puts the word as the "Like" criteria. I can make the button run the query, but I didn't know if I have to put Like * &[TextBoxName] & * in the criteria of each of the possible fields? I would appreciate your help with this. Thanks:)
 
I have a query written that has all of the fields from all of the tables that I want the search to cover, but now I am having trouble connecting a button to the query so that it runs the query and puts the word as the "Like" criteria. I can make the button run the query, but I didn't know if I have to put Like * &[TextBoxName] & * in the criteria of each of the possible fields?
Tyler,

Yes, you will have to use that in each field's criteria. You will have to use the word "OR" to cover all possible criteria...
Code:
WHERE field1 LIKE * & [text] & * OR

     field2 LIKE * & [text] & * OR

etc, etc...
 

Users who are viewing this thread

Back
Top Bottom