Use Same Parameter For Different Fields Within Query?

D

DanielWalters6

I'm trying to build a query which asks for one parameter "SEARCH TERM", and
locates records from one table, where the string "SEARCH TERM" is found
anywhere within any of three fields.

ie. Product List - Has Product Code, Name and Description fields.

I would like one parameter box to be displayed and have it search all three
fields within the table to return any records that meet the criteria.

Any suggestions would be appreciated.

Dan Walters
 
A

Allen Browne

You can reuse the parameter under different fields.

In the Criteria row under the first field, enter:
Like "*" & [SEARCH TERM] & "*"

Under the next field, repeat the expression on first OR line, i.e. the one
*below* the Criteria line in query design.

Under the 3rd fields, repeat it on the 2nd OR line.
 

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