P
PolQueen
I know that working with time in Access can be tricky. I have multiple
locations that I am tracking times that vehicles are covering for another
vehicle, and I really need to use time format. When I have only a few
entries, the first formula works with no problem, but with a lot of entries,
it is incorrect:
=Sum([StartTime]-[ EndTime])
Format: Short Time
Input Mask: 00:00;0;_
(25 entries ranging from :45 minutes to 1:20 minutes = 3:05 hours, which is
wrong.) When I have a lot of entries (some are in the hundreds), the above
formula is completely wrong.
I can get close to the correct number with the formula shown below, but it
is no longer in time format and I am questioned why something is out of
service for 27.08 hours when everything is always in five minute increments.
=Sum(DateDiff("n",[StartTime],[EndTime])/60)
Format: Fixed
Decimal Places: 2
(The same 25 entries ranging from :45 minutes to 1:20 minutes = 27:08 hours,
is actually 27:05 hours).
What is the proper way to calculate this so that I get the true time?
Thank you.
locations that I am tracking times that vehicles are covering for another
vehicle, and I really need to use time format. When I have only a few
entries, the first formula works with no problem, but with a lot of entries,
it is incorrect:
=Sum([StartTime]-[ EndTime])
Format: Short Time
Input Mask: 00:00;0;_
(25 entries ranging from :45 minutes to 1:20 minutes = 3:05 hours, which is
wrong.) When I have a lot of entries (some are in the hundreds), the above
formula is completely wrong.
I can get close to the correct number with the formula shown below, but it
is no longer in time format and I am questioned why something is out of
service for 27.08 hours when everything is always in five minute increments.
=Sum(DateDiff("n",[StartTime],[EndTime])/60)
Format: Fixed
Decimal Places: 2
(The same 25 entries ranging from :45 minutes to 1:20 minutes = 27:08 hours,
is actually 27:05 hours).
What is the proper way to calculate this so that I get the true time?
Thank you.