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

Days to Hours Conversion in Report

Status
Not open for further replies.

EBox

Programmer
Dec 5, 2001
70
US
Hello-

I am working in a Report based on a query which seeks to report out average time between two fields, let's call them Event1 and Event2. There is another field called Class, which contains a value of A, B or C. Both of these fields are Date/Time and contain hour/min specification within the date.

In my report, I would like to list for each Class category (A, B and C) each [Event1] and [Event2] record in each, and then the average for the Class at the bottom.

Sometimes the time elapsed between Event1 and Event2 is greater than 1 day, and I want to display the average elapsed time in hours and minutes only, so that if [Event2]-[Event1] is 2 days and 10 minutes, it would display as 48:10.

Can anyone offer any advice on how to do this?

Thanks!
EBox
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top