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

Search string within field

Status
Not open for further replies.

denko

Programmer
May 17, 2001
70
0
0
US
I have a query that uses "Like" keyword.

Select Field1, Field2
from Table1
Where (Table1.Field1) Like "*CL B"

I do not really like that syntax, can someone tell me what function I can use instead. I tried InStr but it did not work, or maybe I did not use it properly, not sure.
Thanks
 
Did your InStr look like this?

InStr(4, Table1.Field1,"CL B")

HTH
Mike

[noevil]
 
How stupid of me, I had the second and the third arguments switched around - InStr(4, "CL B",Table1.Field1,)
It works now
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top