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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying to Include A Total in Report in Access

Status
Not open for further replies.

Skins64

Technical User
Oct 11, 2005
32
US
I have multiple Companies and a revenue for each, in my report I need to include the sum of all revenues at bottom...do I use a text box, if so, how do I make it add all of the revenue...please help....thanks!
 
Code:
Select Company, SUM(Revenue) As TotalRevenue
From myTable
Group By Company

UNION

Select "ALL Companies", SUM(Revenue)
From myTable
 
You should be able to add a text box to the Report Footer Section with a control source like:
=Sum([Revenue])

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top