query field for record CONTAINING text

G

Guest

Hi. I'm hoping this is relatively easy. Not an expert here. I'm trying to
create a simple query that returns records based upon whether or not a text
field contains a string of text, rather than matching the text exactly. Any
help?
 
F

fredg

Hi. I'm hoping this is relatively easy. Not an expert here. I'm trying to
create a simple query that returns records based upon whether or not a text
field contains a string of text, rather than matching the text exactly. Any
help?

As criteria on that column....
To find the text anywhere in the field, write:
Like "*" & [Look For?] & "*"

To find the text at the beginning of the field, write:
Like [Look For?] & "*"

To find the text at the end of the field, write:
Like "*" & [Look For?]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top