I'm using 2 primary tables: Customer table with CustomerID and CustomerName, Contacts table with ContactID, ContactName, CustomerID, ContactStatus
ContactStatus is a lookup table with 3 statuses: 1 - Active, 2 - Inactive, 3 - Deactive
I am trying to accomplish the following:
I want to see the number of Customers that have 0 Active contacts AND (any number of Inactive/Deactive contacts), where the CustomerID matches in both. Originally I created a query that looked for a CustomerStatusID of 1 (active) AND a Count: CustomerStatusID of 0. This returned 19 results.
In reality, my query needs to show each of the 19 Customers with 0 actives, but an additional 37 Customers with either an inactive or deactive Contact, but customer may have 0 actives, but have X number of inactives/deactives, and still be counted as someone to show up on my query.
My question is how to build a query to show both the Customers with a total count of 0 Actives AND those same customers that do have any number of Inactives/Deactives. Tried Not in(1) And (>2 And <3) using the query builder in Access 2010 to no avail.
Please help!