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

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
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,516
Messages
6,172,778
Members
452,477
Latest member
DigDug2024

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