G
Guest
I am using a DateDiff function in a query to calculated shift length. For
example, in my query, I calculate total time worked on Sunday as:
TotalSunday: DateDiff("n",[SundayStart],[SundayEnd]).
However, if an employee works a shift that begins in the afternoon and ends
early the next morning (ex. 7:00 pm to 3:00 am), the calculation returns a
negative number of minutes -480.
Any solutions for this? Do I have to change my time format to military
time, I'd rather not as I feel it would cause errors in data entry.
Thanks! Any help would be greatly appreciated.
Kate
example, in my query, I calculate total time worked on Sunday as:
TotalSunday: DateDiff("n",[SundayStart],[SundayEnd]).
However, if an employee works a shift that begins in the afternoon and ends
early the next morning (ex. 7:00 pm to 3:00 am), the calculation returns a
negative number of minutes -480.
Any solutions for this? Do I have to change my time format to military
time, I'd rather not as I feel it would cause errors in data entry.
Thanks! Any help would be greatly appreciated.
Kate