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

Group results Hourly 2

Status
Not open for further replies.

Revolution1200

Programmer
Sep 29, 2005
143
GB
Hi All,

I am struggling with this one,

I have the following data in an access database

Time Calls Offered
00:00 0
00:15 0
00:30 0
...
09:15 10
09:30 20

What i would like to do is to produce a report that groups the 15 minute time intervals into hourly intervals with a sum of the calls offered each hour.

Can someone help me with this?

Thanks

Stuart
 
- Create a report, set the Record Source property of the report to your table/query that contains the data you posted.

- Add a grouping to your report. Set the field/expression to =Hour([time]), display at least the group footer.

- In the group footer that you just added, add a textbox control. Set the Control Source property of the textbox to =Sum([Calls Offered])

Good Luck!
 
Thanks For that - seems simple when you know how :)

Have a star

Stuart
 
Hi,

Is there a way of producing these results in a query of some sort?

Thanks

Stuart
 
A starting point (SQL code):
SELECT Hour([Time]) AS Hour, Sum([Calls Offered]) AS TotalCalls
FROM yourTable
GROUP BY Hour([Time])

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thanks PH

Again provided the ladder to climb out the hole.

A star for you.

Kind Regards

Stuart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top