Modify the Timer Event in the Following Way:
N.B. This will only count to ~9hrs as the TimeSerial Function Requires an IntegerCode:Private Sub Timer1_Timer() Static tTimer As Single Dim tSecs As Single If Len(Timer1.Tag) Then tTimer = Timer Timer1.Tag = "" End If tSecs = Timer - tTimer Caption = Format(TimeSerial(0, 0, tSecs), "HH:MM:SS") & "." & Format((tSecs - Int(tSecs)) * 100, "00") End Sub
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]




Reply With Quote