Hi looperboy,
I'm not really here - far too busy getting ready for tomorrow, so very quickly ..
1) It's not much different, but to avoid using the SQL window, in your Query Design, add CustomerID as a field in the Query and
uncheck the "Show" checkbox, then in Criteria enter ..
Not In (SELECT Customers.CustomerID FROM Customers INNER JOIN Prodducts ON Customers.CustomerID = Prodducts.CustomerID WHERE Prodducts.Product = "CD"
This is what will show up if you do it in SQL and then return to Query Design.
You can make it slightly easier (shorter) to type if you set up a stand-alone query (graphically) which is a straightforward join of all CustomerID - Product combinations and call it, say, CustProd. Your criteria then becomes ..
Not In (SELECT CustomerID FROM CustProd WHERE Product = "CD"
2) To include two such criteria you need to change the WHERE clause in the sub-query so that you exclude all customers who have either a CD or a DVD, like this ..
Not In (SELECT Customers.CustomerID FROM Customers INNER JOIN Prodducts ON Customers.CustomerID = Prodducts.CustomerID WHERE Prodducts.Product In ("CD", "DVD"
)
Hope this helps. Have a good holiday.
Enjoy,
Tony
![[santa] [santa] [santa]](/data/assets/smilies/santa.gif)
-----------------------------------------------
![[reindeer] [reindeer] [reindeer]](/data/assets/smilies/reindeer.gif)
A very Merry Christmas to all Tek-Tippers
![[xmastree] [xmastree] [xmastree]](/data/assets/smilies/xmastree.gif)
----------------------------------------------- [santa2]