DateTime variables and fields contain "special" floating point values
in which the whole number part is designed to correspond (for a date)
to the number of days elapsed since (from memory) December 31, 1899,
and the fractional part is the time after midnight in fractions of a
_day_.
If you are using DateTime variable to hold clock times (no whole
number part) _and_ your start and end times are always on the same day
(no crossing midnight), you can compute elapsed time, in minutes as:
(dtEndTime-dtStartTime) * 1440
If a "session" can cross midnight but is never longer than 24 hours,
you can use:
((dtEndTime-dtStartTime) + IIF(dtEndTime>dtStartTime),0,1)) * 1440
Under any other circumstances, you have to track starting date/time
and finishing date/time.
I have a table where I store start time and end time for
a project. I need to be able to convert this time into
minutes per day per task. Any help will be appreciated.
Thanks, Patti
Please respond to the Newsgroup, so that others may benefit from the exchange.
Peter R. Fletcher