Exclude text criteria with an exception

brncao

Board Regular
Joined
Apr 28, 2015
Messages
147
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

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
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,213,544
Messages
6,114,239
Members
448,555
Latest member
RobertJones1986

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