Yes: first, you have to select the CustID who have place a single order by
making a Group By on the Order table and testing for Having CustId = 1.
After that, you can use the operator IN to query for the other three fields:
Select CustID, [Date], PartNo, Qty
From Orders
Where CustID IN (Select CustID From Orders Group By CustID Having Count(*) =
1)
This is for SQL-Server but it should work well with Access JET. There are
also other ways to express this; for example, you could use the EXISTS
statement or a subquery:
Select CustID, [Date], PartNo, Qty
From Orders
Where (Select Count(*) From Orders as O2 where Orders.CustID = O2.CustID) =
1
--
Sylvain Lafontaine, ing.
MVP - Windows Live Platform
Email: sylvain2009 sylvainlafontaine com (fill the blanks, no spam please)
Independent consultant and remote programming for Access and SQL-Server
(French)