I installed the Find Duplicates Query Wizard and the Find Unmatched Query Wizard from the Office 97 CD, ran them on the tables in my examples above, and obtained these two SQL statements:
by Wizard - Find duplicates for tblParts:-
SELECT DISTINCTROW tblParts.PartNumber, tblParts.CreationDate, tblParts.Description
FROM tblParts
WHERE (((tblParts.PartNumber) In (SELECT [PartNumber] FROM [tblParts] As Tmp GROUP BY [PartNumber],[CreationDate] HAVING Count(*)>1 And [CreationDate] = [tblParts].[CreationDate])))
ORDER BY tblParts.PartNumber, tblParts.CreationDate;
by Wizard - tblCustomer Without Matching tblOrder:-
SELECT DISTINCTROW tblCustomer.CustomerID, tblCustomer.CustomerName
FROM tblCustomer LEFT JOIN tblOrder ON tblCustomer.CustomerID = tblOrder.CustomerID
WHERE (((tblOrder.CustomerID) Is Null));
However, the Find Unmatched Query Wizard won't let me set any criteria, so it can only find "CustomerID in tblCustomer Without Matching CutomererID in tblOrder", but not "customers who have not placed any orders this year" as in my example.
I attach the DB for you (find_dup_and_unmatch.zip in Access97, size 16KB). It contains the two queries produced by the wizards and my two examples. They have all been tested in Access 2000. No syntax errors at all.