Count 2 possibilities in same query/form

cbrou

New member
Local time
Today, 07:47
Joined
Jan 17, 2002
Messages
6
I am trying to make a query or form that will display a count for the total number of tickets "open" and at the same time display the number of tickets "closed". I can do each seperately in queries using the following SQL:

SELECT Sheet1.[Client ID] AS School, Count(Sheet1.[Assigned To]) AS [Open Tickets]
FROM Sheet1
WHERE (((Sheet1.Status)="Open"))
GROUP BY Sheet1.[Client ID]
HAVING (((Count(Sheet1.[Assigned To]))>0))
ORDER BY Sheet1.[Client ID], Count(Sheet1.[Assigned To]);

Is there a way to display the results of "open" count and "closed" count in the same result?
 
Pat, you are the man. I have been looking all over the net for weeks and could not put my finger on it.

Thank You!
 
Errr...actually Pat's NOT the man...but she is a great help.
smile.gif
 

Users who are viewing this thread

Back
Top Bottom