C
chris
To give me the elapsed time between 2 sets of dates and associated times, I
used a calculation and the following function to calculate it. Unfortunately,
I would like to have it formatted in DD:HH:MM instead of "x Days y Hours z
Minutes". Can anyone help with this? Thanks!
------------
Option Compare Database
Option Explicit
Public Function MyGetElapsedTime(interval) As String
Dim Day As String
Dim Time As String
Day = Int(interval) & " day "
Time = Format(interval, "h \h\r n \m\i\n")
MyGetElapsedTime = Day & Time
End Function
used a calculation and the following function to calculate it. Unfortunately,
I would like to have it formatted in DD:HH:MM instead of "x Days y Hours z
Minutes". Can anyone help with this? Thanks!
------------
Option Compare Database
Option Explicit
Public Function MyGetElapsedTime(interval) As String
Dim Day As String
Dim Time As String
Day = Int(interval) & " day "
Time = Format(interval, "h \h\r n \m\i\n")
MyGetElapsedTime = Day & Time
End Function