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

Adding a total

Status
Not open for further replies.

TSO456

Technical User
Jul 23, 2001
57
US
Hi,
I need to add a total to a result that a query produces
I need the query result to look like this

Account Funds
A 100
B 200
C 300
D 400
Total 1000

Please let me know how to do that

Thanks
Jill
 
Jill,

That's something that should be done in a report. If you base one of those on the query (without the total) you'll be able to add the total in a control on the footer. Check into sum and running sum in help for reports.

Jeremy =============
Jeremy Wallace
AlphaBet City Dataworks

Take a look at the Developers' section of the site for some helpful fundamentals.
 
Like Jeremey, I usually do my totals in a report but if you truly only have a few fields in your query you could create a new field in the query with an alias and total all the fields: TotalFunds: A + B + C + D. I use that frequently when troubleshooting. Ann
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top