عند الوصل للوقت المطلوب تظهر الساعه بالشكل المرفق فى الصورة ولا يصفر
مرفق الكود المستخدم
Private Sub Form_Timer()
Dim Hours As String
Dim Minutes As String
Dim Seconds As String
Dim MilliSec As String
Dim msg As String
Dim ElapsedMilliSec As Long
ElapsedMilliSec = Me.Text15.Value - (GetTickCount() - StartTickCount) + _
TotalElapsedMilliSec
Hours = Format((ElapsedMilliSec \ 3600000), "00")
Minutes = Format((ElapsedMilliSec \ 60000) Mod 60, "00")
Seconds = Format((ElapsedMilliSec \ 1000) Mod 60, "00")
MilliSec = Format((ElapsedMilliSec Mod 1000) \ 10, "00")
Me!ElapsedTime = Hours & ":" & Minutes & ":" & Seconds & ":" _
& MilliSec
If Me!ElapsedTime = "00:00:00:00" Then
Me.[test Name].BackColor = RGB(225, 0, 0)
PlaySound Application.CurrentProject.Path & "\sounds\test.WAV"
DoCmd.Restore
TotalElapsedMilliSec = TotalElapsedMilliSec + _
(GetTickCount() - StartTickCount)
Me.TimerInterval = 0
TotalElapsedMilliSec = 0
Me!ElapsedTime = "00:00:00:00"
Me!btnStartStop.Caption = "start"
Me.btnReset.Enabled = True
End If