The format part may work though I have never tried it. If not, still use the datediff function to get the time interval in seconds then build that into hours minutes and seconds.
If the days are the same:
Interval: Format(EndDate-StartDate,'h:nn:ss')
If not:
Interval: (24*Int(EndDate-StartDate)+Format(EndDate-StartDate,'h')) & Format(EndDate-StartDate,':nn:ss')
Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.