Search using Query

harringg

Board Regular
Joined
Mar 14, 2006
Messages
70
I've got a table with multiple fields per record.

I want to pull up data in a form using a Query.

A term may reside in either the "Notes" or "Comments" field.

To search for "coffee" in the Notes field, I'd set a criteria in the Query builder:

Like "*" & [Enter Your Beverage] & "*", under the Notes Field in the query builder. It would prompt me to enter a text string when running the query. All is good.

If I want to enter "coffee" once and have it return records that contain that word in the Notes or Comments field, what would the syntax be?

Access 2003
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Put the same exact criteria on the OR line of the comments field. If the exact same parameter prompt is used, it will only prompt you once for it.
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top