>>
SELECT COUNT(DISTINCT s.supercatID) AS num FROM supercat s WHERE
s.supercatID IN (SELECT p.supercatID from Products p WHERE p.outlet=1)
<<
Select Count(t.supercatID) As num From (Select s.supercatID From
supercat s Where s.supercat In (Select p.supercatID from Products p
Where p.outlet = 1) Group by s.supercatID) t
Note: I tried a similar query to this without the alias'es and got the
same results (Access2002 - should work the same in Access 2000). Also,
I try to avoid the Distinct keyword. Group By is more reliable.
Rich
*** Sent via Developersdex
http://www.developersdex.com ***