Hello All! I need to calculate time difference in minutes on a form where the user enters: Date, Start Time, End Time. These times use military time.
In a query, I use:
1TimeDiff: DateDiff("s",[1StartTime],[1EndTime])/60
This works fine except when crossing midnight where going from, say, 2300 to 0000 or 0100 hrs the next day. I get negative values returned.
How would the code look to accomplish this?
Thanks in advance. ddmtn546.
In a query, I use:
1TimeDiff: DateDiff("s",[1StartTime],[1EndTime])/60
This works fine except when crossing midnight where going from, say, 2300 to 0000 or 0100 hrs the next day. I get negative values returned.
How would the code look to accomplish this?
Thanks in advance. ddmtn546.