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!

sum/total revenues per day 1

Status
Not open for further replies.

ken321

Technical User
Nov 30, 2012
2
US
Hello.

I haven't used access in a while and I'm trying to produce a report that will give me total revenues per day for each day in my table

i.e.


Table:

transaction date revenue

x 11/12/2012 10
y 11/12/2012 20
z 11/12/2012 15

abc 11/13/2012 10
acc 11/13/2012 10
ccc 11/13/2012 10
xyz 11/13/2012 10


Report or query result:

date revenue count
11/12/2012 45 3
11/13/2012 40 4


I can use the grid but don't know sql.

Thank you.

 
If you "can use the grid" then why not use it? You can then change to SQL view to see the actual SQL statement that is created. Just group by the date (assuming it doesn't include the time values), Sum the revenue, and Count the revenue.

Duane
Hook'D on Access
MS Access MVP
 
That worked well. Thanks for the pointer!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top