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

In String

Status
Not open for further replies.

DirtyB

Programmer
Mar 13, 2001
159
US
OK, I have two fields in different tables. One field is a Language (i.e. "French"). The other field is a Description of a code that represents a group of languages. i.e. the European record would have the data in a memo data type("German, French, Italian, Swedish etc..."). I need to select the ID of the Group record if the Language field is included in the string.

So, I need to be able to say if 'French' is in the string 'European.Description' then give me the ID of European Langauge Group. Is there an InString or InStr function that I can use in Access SQL to do this? The like statements(%) don't seem to be working.

Thanks
 
Try an "*":

SELECT tblStrings.id, tblStrings.string
FROM tblStrings
WHERE tblStrings.string like '*french*';

The "%" is used in Oracle (maybe others)... Terry M. Hoey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top