Multiple Exclude / "Unmatched" Query | Access 2010

Anonymous
2014-04-17T20:59:17+00:00

I am using Access 2010, trying to do an exclude via the UI (2nd join type and then "Is Null") but am trying to do that for 3 fields.

Specifically:

I need access to return any records from one table where a match is not found in 3 fields.

Phone, Email and Company are the fields and I need access to return any records in table 1 where Phone does not match in table 2 AND Email does not match in table 2 AND Company does not match in table 2.

Any ideas?

I have tried to do a triple type-2 join with "Is Null" in each criteria like a typical exclude but it is returning more not fewer matches (acting like an OR instead of AND by the looks of it)

Update: thank you to Hans for the solution. I have included a picture of it to help others in my situation

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes
Answer accepted by question author
  1. HansV 462.4K Reputation points MVP Volunteer Moderator
    2014-04-17T21:12:03+00:00

    Do you want to return all records for which there is no match on the combination of the fields Phone, Email and Company? If so, create a triple outer join as you have done.

    But if you want to return all records for which there is no match on Phone, and also no match on Email and no match on Company, you need to add the second table three times to the query.

    Create an outer join to the first instance on Phone (with Is Null in the criteria), an outer join to the second instance on Email (also with Is Null in the criteria) and an outer join to the third instance on Company (ditto).

    0 comments No comments

5 additional answers

Sort by: Most helpful
  1. Anonymous
    2014-04-24T21:25:49+00:00

    Thank you sir!

    0 comments No comments