calculating grand total

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello

I have a table which records the number of staff receiving
an education class, with a separate field for different
staff types.

I can create a query to sum each staff type.

How can I get a grand total across ALL staff types?

Thank you very much
 
Drop the staff type from the query.

or use a report to sum the totals at the bottom.

Or use a union query, that might look something like the following

SELECT "Detail" as RecType, StaffType, Count(StaffType) as CountEm
FROM YourTable
GROUP BY StaffType
UNION ALL
SELECT "Total", "Grand Total", Count(StaffType)
FROM YourTable
GROUP BY "TOTAL"
ORDER BY 1, 2
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Append Query Issue 0
Exclude items in a query 2
Ranking Query Results 4
Using a combo box as a criteria for a query 1
Issues with Left Join 1
What's wrong with this query?! 5
Grand Total in a Query 2
Query Help 2

Back
Top