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

Criteria - Containing text

Status
Not open for further replies.

ApplePirate

Programmer
Dec 16, 2002
65
GB
this is probably very simple,,, how do I set the criteria in a query to only return records where a certain piece of text is contained in the field.
i.e Like "*Front Street*" Never ever, bloody anything, ever
 
This will return NameID and Name from table tblName for all records where Name contains an

SELECT tblName.NameID, tblName.Name
FROM tblName
WHERE (((tblName.Name) Like '*an*'));

There are two ways to write error-free programs; only the third one works.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top