MS Query Criteria to exclude data containing certain letters

AquaEnglish

New Member
Joined
Nov 2, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I am working on a multi-table query that has a field for job_id. The job_id formatting varies some formatted with a beginning letter followed by numbers, some all numbers. I have input criteria to rule out job_ids containing those specific letters. It is mostly working, my my table is still showing about 10 job_ids beginning with "S"
As you can see in my attached screenshots, we've tried adding different variations of the letters we are trying to exclude. If we remove those, the full job list does come back, so it's working, just not on those 10 or so records??
Any ideas on where to start with this issue?
Criteria SQL.jpg
job_id list.jpg
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Welcome to the MrExcel Message Board!

Actually, "%S%" should work, in fact, you don't even need "%[S]%" in that case.

I wonder if you have any OR criteria in your query that overwrites the previous rule.

Also, being not sure if you want some job_id values with other letters, if you only need the numeric values, then IsNumeric(jobs.job_id) could be a better solution.
 
Upvote 0
Welcome to the MrExcel Message Board!

Actually, "%S%" should work, in fact, you don't even need "%[S]%" in that case.

I wonder if you have any OR criteria in your query that overwrites the previous rule.

Also, being not sure if you want some job_id values with other letters, if you only need the numeric values, then IsNumeric(jobs.job_id) could be a better solution.
I will give this a try! Thank you
 
Upvote 0

Forum statistics

Threads
1,223,993
Messages
6,175,835
Members
452,674
Latest member
psion2600

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