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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

is there a 'contains' command for criteria of queries 1

Status
Not open for further replies.

AccipiterQ

Programmer
May 25, 2005
27
US
I have a list of donors, say a few have donated in more than one event, but I don't want multiple listings of them in my datatables. I have a field that indicates which events they've donated to, let's say it's called 'Donated To'. Let's pretend John Smith has donated to the Turkey Drive and Homeless Shelther. So his entry under 'Donated To' would be "Turkey Drive, Homeless Shelter"


Now I want a query that only returns those who have donated to the turkey drive. So for the "Donated To' field in design view I can't set the criteria to '=Turkey Drive' because that will return only those who have only 'Turkey Drive' in the 'Donated To' field, and not those who haev 'Turkey Drive' along with other things.

So what I'm asking, is there a command that would look at the 'Donated To' field and see if the term I want is contained in it, even if it's not the only thing in the field??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top