W
WembleyBear
Hi
I have a query that is based on a table called TARGETS which returns the
number of targets in the table that are marked as "bad", and then grouped by
user. The code for this query is:
SELECT TARGETS.[User Name], Count(TARGETS.Bad) AS CountOfBad
FROM TARGETS
GROUP BY TARGETS.[User Name]
HAVING (((Count(TARGETS.Bad))=True))
ORDER BY Count(TARGETS.Bad) DESC;
What I want to do in addition to the count of bad target records created by
user name, is to show the total number of records created by each user, so
that the result is something like:
Created Bad
Mary Jones 17 4
Bob Smith 12 3
etc
What is the best way to do this?
Many thanks
Martyn
Access 2000, Windows 2003 server over Citrix MF
I have a query that is based on a table called TARGETS which returns the
number of targets in the table that are marked as "bad", and then grouped by
user. The code for this query is:
SELECT TARGETS.[User Name], Count(TARGETS.Bad) AS CountOfBad
FROM TARGETS
GROUP BY TARGETS.[User Name]
HAVING (((Count(TARGETS.Bad))=True))
ORDER BY Count(TARGETS.Bad) DESC;
What I want to do in addition to the count of bad target records created by
user name, is to show the total number of records created by each user, so
that the result is something like:
Created Bad
Mary Jones 17 4
Bob Smith 12 3
etc
What is the best way to do this?
Many thanks
Martyn
Access 2000, Windows 2003 server over Citrix MF