Totaling Times

D

Derrick

Thanks to a great answer to my previous question on calculating time
differences i used the expression below;

DateDiff("n", [Start Time], [Finish Time])\60 & "." & Format(DateDiff("n",
[Start Time], [Finish Time]) MOD 60, "00")

Now what I need to know is how to total the results of multiple hours and
minutes shown??
 
K

KARL DEWEY

Try this --
Sum(CDbl(DateDiff("n", [Start Time], [Finish Time])\60 & "." &
Format(DateDiff("n",[Start Time], [Finish Time]) MOD 60, "00")))
 
J

John W. Vinson

Thanks to a great answer to my previous question on calculating time
differences i used the expression below;

DateDiff("n", [Start Time], [Finish Time])\60 & "." & Format(DateDiff("n",
[Start Time], [Finish Time]) MOD 60, "00")

Now what I need to know is how to total the results of multiple hours and
minutes shown??

Total the minutes *first*, and then use the same kind of formatting expression
to display the result:

Sum([runtime]) \ 60 & ":" & Format(Sum([runtime]) MOD 60, "00")

where runtime is the sum of the individual datediffs.
 

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


Top