W
WMorsberger
I am trying to produce a query that will count items in my table. The report
that I am trying to get at the end shows many different counts for the fields
that I have in the report.
Example: I have a compliments check box and a complaints combo box on the
form. I have many different departments and I need to obtain a count for
each department on the amount of compliments and the amount of complaints
that they received.
What I have so far is this:
SELECT [tbl CM Communications].[Re-Route To], Count([tbl CM
Communications].[Complaint Reason Codes]) AS [CountOfComplaint Reason Codes],
Count([tbl CM Communications].Compliament) AS CountOfCompliament
FROM [tbl CM Communications]
GROUP BY [tbl CM Communications].[Re-Route To]
ORDER BY [tbl CM Communications].[Re-Route To];
When I run this query I am not getting the correct counts. Can someone
please assist me with this?
that I am trying to get at the end shows many different counts for the fields
that I have in the report.
Example: I have a compliments check box and a complaints combo box on the
form. I have many different departments and I need to obtain a count for
each department on the amount of compliments and the amount of complaints
that they received.
What I have so far is this:
SELECT [tbl CM Communications].[Re-Route To], Count([tbl CM
Communications].[Complaint Reason Codes]) AS [CountOfComplaint Reason Codes],
Count([tbl CM Communications].Compliament) AS CountOfCompliament
FROM [tbl CM Communications]
GROUP BY [tbl CM Communications].[Re-Route To]
ORDER BY [tbl CM Communications].[Re-Route To];
When I run this query I am not getting the correct counts. Can someone
please assist me with this?