View Full Version : Simple Like query


rowk
05-11-2005, 10:50 PM
Hi there,
I have a really simple question.
I have a field in a table that contains comments (text format). I want to run a query where I can get only the records that contain the word "high" in the comments. There may be some typos so I would like records returned that also contain something like "high". High is not the only word in the comments.

Does this make sense?

Thanks,
Row

MStef
05-11-2005, 11:04 PM
In query Criteria use Like *high*

WayneRyan
05-11-2005, 11:07 PM
rowk,

I hate trying to explain query grids.

In your query, on the Criteria Line, for your comments field put:

Like "*high*"

Then underneath that entry, put:

Like "*hih*"

And so on.

By putting them on separate lines vertically, that makes an OR condition.
If the field matches any of them, the record is returned in the query.

Wayne

rowk
05-11-2005, 11:12 PM
worked like a charm - thanks for your help!!

WayneRyan
05-11-2005, 11:54 PM
Rowk,

Thank you.

Welcome to the Forum.

Wayne