In Access, you have to do it yourself. First you need to use the DateDiff
function to get the number of minutes.
lngHrsAndMins = DateDiff("n",StartTime, EndTime)
Then you have to separate the hours and minutes.
strShowTime = Format(lngHrsAndMins \ 60, "00\:") & Format(lngHrsAndMins Mod
60, "00")
the \ divisor returns on the integer part and gives you the number of hours.
the Mod operator returns only the remainder part and gives you the number of
minutes.
--
Dave Hargis, Microsoft Access MVP
jinks said:
How can I show a form in pivochart view summing the hours that passed between
two dates?
where is the excelent custom format [h]:mm???