Exclude text criteria with an exception

brncao

Board Regular
Joined
Apr 28, 2015
Messages
149
I have two fields: one called Amount, and the other called Description.

The description criteria has something like: Not Like "*TEXT2EXCLUDE*".
However, there is an exception to the criteria above, which is do not exclude if >30000000.

What's the approach to this in Access?
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
You can do this with an OR statement, i.e.
Code:
WHERE ([Description] Not Like "*TEXT2EXCLUDE*") OR ([Amount] > [COLOR=#333333]30000000)[/COLOR]
If using the Query Builder, just put this criteria on the next Criteria row.

In the Query Builder, Criteria entered on the the same row is treated as "AND". Criteria entered on different rows is treated as "OR".
 
Upvote 0
You are welcome!

You know the old saying, it is easy when you know how!;)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

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