Hi Richard,
Try this example:
Code:
SELECT tblCustomer.*
FROM tblCustomer LEFT JOIN (SELECT tblOrder.CustomerID
FROM tblOrder
WHERE tblOrder.Retail=0 AND Month(tblOrder.OrderDate)=Month(Date()) AND Year(tblOrder.OrderDate)=Year(Date())) AS qryCC ON tblCustomer.CustomerID = qryCC.CustomerID
WHERE tblCustomer.DistCust=2 AND qryCC.CustomerID Is Null;
Change table/field names where necessary, but I recommend you avoid using "ID" as a name for a Primary Key field. In this example I switched to "CustomerID". I also recommend you avoid using "Date" as a name for any field. "Date" is a reserved VBA/SQL code word.
Cheers,