Hello All...
I can make the following code provide the number of seconds between two times but I can't seem to translate those seconds into a "hh:mm:ss" format.
What am I doing wrong?
TimeDiff calculates the correct # of seconds but when I attempt to format those seconds into the "hh:mm:ss" format it shows 00:00:00
No amount of google or youtube reveals an answer, so..... here I am
Thank You in Advance...
RT91
I can make the following code provide the number of seconds between two times but I can't seem to translate those seconds into a "hh:mm:ss" format.
What am I doing wrong?
Code:
Dim Time1 As Date
Dim Time2 As Date
Dim TimeDiff As Double
Time1 = Me.txt22.Value
Time2 = Me.txt23.Value
TimeDiff = (Time2 - Time1) *86400
Me.lbl1 = Format(TimeDiff, "hh:mm:ss")
TimeDiff calculates the correct # of seconds but when I attempt to format those seconds into the "hh:mm:ss" format it shows 00:00:00
No amount of google or youtube reveals an answer, so..... here I am
Thank You in Advance...
RT91