I would just store the [start time] [endtime] and [Minslaps] but would display the Hours:mins
only because hours is a mod 60
ie 50mins + 50mins = 100mins or 1:40
here some code I use to convert mins to hours
why store the [Minslaps] month end reporting will be easyer to work out
If num < 60 Then
MintoHrs = "00:" & Format(num, "00")
hh = Int(num / 60)
Temp = (hh * 60)
MintoHrs = Format(hh, "00") & ":" & Format((num - Temp), "00")
=MintoHrs(Sum([Minslaps])) sumed and format in one step
only problem is some total will look like 1988:43 my company hasn't ask to convert that to days:hours:min YET waiting (have done it)
other little problem is the Sum([Minslaps]) gets very big number
it work in Query as well
Last edited by myle; 02-08-11 at 05:12.
hope this help
the aim is store once, not store multiple times
Remember... Optimize 'til you die!
Access based on my own environment: DAO3.6/A97/A2000/A2003/A2007/A2010
VB-NET based on my own environment started 2007
SQL-2005 based on my own environment started 2008
YOUR PASSWORD IS JUST LIKE YOUR TOOTHBRUSH DON'T SHARE IT.
DONT WORRY ABOUT THOSE WHO TALK BEHIND YOUR BACK
THEY'RE BEHIND YOU FOR A REASON