troubleshooting Question

Exluding multiple records from a query based on a single criteria

Avatar of mattryanjersey
mattryanjersey asked on
DatabasesMicrosoft AccessSQL
5 Comments1 Solution350 ViewsLast Modified:
I have a query that returns a record set of letters I have sent to a client. Each letter has its own code to identify it. There is a one to many relationship between the client and the letter table, i.e. a client may receive a number of different letters.
What I am trying to achieve is, when a client has been sent a certain type of letter I do not want any of that clients letters appearing in the record set. So for example if the letter code is "NS" I want to be able to set a criteria that will exclude all codes, be they "AS", ZS" etc.
By setting the criteria LetterCode<>"NS" I'm only excluding letters sent with that code not the others.

Many thanks
Matt
ASKER CERTIFIED SOLUTION
frankytee

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros