Thanks for the fast responses! I'm using Access 2000, so maybe I have some incorrect syntax as I'm getting an error. This is the exact query:
SELECT bomref.fcparent, Count(DISTINCT bomref.fcomponent) AS CountOffcomponent
FROM bomref
GROUP BY bomref.fcparent
HAVING (((bomref.fcparent)="PGMUVCBKRC"));
here is the error:
Syntax error (missing operator) in quyery expression 'Count(DISTINCT bomref.fcomponent)'.
Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.
ASKER
SELECT bomref.fcparent, Count(DISTINCT bomref.fcomponent) AS CountOffcomponent
FROM bomref
GROUP BY bomref.fcparent
HAVING (((bomref.fcparent)="PGMUV
here is the error:
Syntax error (missing operator) in quyery expression 'Count(DISTINCT bomref.fcomponent)'.