Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question with Query Criteria

Status
Not open for further replies.

tyleri

Programmer
Jan 2, 2001
173
US
I have linked an Excel Spreadsheet to my Access database, and I am trying to put together a query that pulls information if the field contains one word in a series of words.

Specifically I have a field that might have "Jon Doe" or it might have "Jon Doe / Jane Smith".

In the query criteria, if I type "Jon Doe" it shows me all the fields with just Jon Doe, and none with "Jon Doe / Jane Smith".

How can I get the query to select ALL fields that contain the string of text I'm searching for?

Thanks
 
excellent! now to expand upon that, I am pulling the string i'm searching for from a combo box (combo_1).

[forms]![main_form]![combo_1] is the string I usually use to pull the information from that combo box. how would i incorporate that into this issue?

i tried: like "[forms]![main_form]![combo_1]" & "*" but no luck.
 
nevermind i got it

like [forms]![main_form]![combo_1] & "*"
 
Try:

like [forms]![main_form]![combo_1] & "*"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top