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!

Criteria using a partial match to a text field

Status
Not open for further replies.

endwarde

IS-IT--Management
Apr 28, 2001
49
US
Hi there,
I am sure this is simple, I am just not finding the answer anywhere. I am trying to create a query where I have a user definable criteria which searches for matching text within a text field.

For instance, the actual text field entry may read:
"Ghana field reports"

and I wish to have the user be able to enter just:
"Ghana"

and have it return the record above with the word "Ghana" (as well as any other records with Ghana in it) in the query.

I am doing this by just putting in the simple [Enter Description], but unless I put in text which matches the field exactly, I don't get anything.

So, is there some way of writing this so a user use a criteria to show records based on text within a field? Or am I thinking about this all backwards?
 
Like '*' & [Enter Description] & '*'

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Excellent. This works great. I tried a number of different combonations very similar this, but never tried that one.

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top