AthenaSpirit
Registered User.
- Local time
- Today, 10:32
- Joined
- Aug 18, 2014
- Messages
- 14
Hello,
I have looked for other posts however either they just count down in seconds, do not have the format I would like, or I simply dont understand them...
How I adjust the below countdown code to be formatted in HH:nn:ss??
I need a countdown of 5 minutes and for the label to display as such.
It is currently set at only 20 seconds, but I do not know how to enter 5 mins in this value, so have left it as my last working example..
I would be grateful for any advice,
I have looked for other posts however either they just count down in seconds, do not have the format I would like, or I simply dont understand them...
How I adjust the below countdown code to be formatted in HH:nn:ss??
I need a countdown of 5 minutes and for the label to display as such.
It is currently set at only 20 seconds, but I do not know how to enter 5 mins in this value, so have left it as my last working example..
I would be grateful for any advice,
Code:
Option Compare Database
Private Sub Form_Open(Cancel As Integer)
Me.txtTimer.Value = 20
' Seconds to countdown from
End Sub
Private Sub Form_Timer()
Me.txtTimer.Value = Me.txtTimer.Value - 1
' Countdown in seconds
If Me.txtTimer.Value = 0 Then
labTimesUp.Visible = True
Me.TimerInterval = 0
Else
End If
End Sub