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!

grouped IIF statement to search for specific words in a field

Status
Not open for further replies.

Tupence

MIS
Aug 31, 2005
16
FR
I have a list of company names that i want to write a grouped IIF statement to bring back results of only those with Limited, LTD or plc. in the field, these are always at the end of the string, I have thought about using RIGHT function but I have also found the Instr function but don't know how it works or if this is right for the job.

Any help would be appreciated.
 
You could use the LIKE keyword
Code:
WHERE myField LIKE '*plc' or myField LIKE '*LTD'
 
i have checked the MS access functions and this one doesn't appear.

Any other suggestions? thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top