how to calculate total time in query

X

xiaodan86

Anyone know how to calculate total time in query if the total time
exceed 24 hours?
I wish the total time to be display in number of hours and minutes.
 
A

Al Campagna

If your hours difference will exceed 24hrs, you'll need the Date AND the Time. You
cannot calculate the hours between 12:00 and 12:00 2 days apart without the Dates
involved.
Given a StartDateTime and EndDateTime...
=DateDiff("h","StartDateTime, End DateTime)
will yield total hours bewteen the two.

--
hth
Al Campagna . Candia Computer Consulting . Candia, NH USA
Microsoft Access MVP
http://home.comcast.net/~cccsolutions

"Find a job that you love, and you'll never work a day in your life."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Excel Sumproduct 0
Calculating Hours 1
Query won't total numerals 15
TIME CALCULATION 5
Time Calculations 1
Time Card creation 3
Difference in dates/times within same column grouped by individual 4
Calculating Time 2

Top