Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Total in Group Query

Status
Not open for further replies.

JackGat

Technical User
Dec 28, 2009
15
US
I have a query where I group on customer states and count the number of customer last names in each state.

My query looks like this.
State Countof Lastname
NJ 5
NY 6
CA 10

Is it possible to include the sum in the same query?

I want my query to look like this.
State Countof Lastname
NJ 5
NY 6
CA 10
Total 21

Any advice is greatly appreciated.
Cheers.

 
You can use a union query to display the sum line/record at the bottom of the other records.

Typically totals are displayed in the footers of forms and reports.

Duane
Hook'D on Access
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top