Re: CountDown Access 97
From: PC Datasheet (nospam_at_nospam.spam)
Date: 03/24/05
- Next message: \: "Re: vba error"
- Previous message: tclarke_at_merseymail.com: "Continuous Forms Question"
- In reply to: Franco Davillo via AccessMonster.com: "Re: CountDown Access 97"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 24 Mar 2005 00:04:47 GMT
>From my file (see below my Sig) ------
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
resource@pcdatasheet.com
www.pcdatasheet.com
Countdown Timer On A Form
Q I would like to have a form that once opened would start to countdown for
lets say 30 seconds. Once it reaches 0, some event will occur. I would like
the numbers to change every second so that the user knows how long before
the event occurs. Any ideas on how to do this.
A Add the following code to the form:
Put this statement in the Options Explicit header:
Dim mintTimer As Integer
Private Sub Form_Load()
mintTimer = 30 ' 30 seconds
txtShowTimer.Value = mintTimerStart ' show the time in a textbox
TimerInterval = 1000 ' 1 second
End Sub
Private Sub Timer()
mintTimer = mintTimer - 1 ' count down
txtShowTimer.Value = mintTimerStart ' show the time in a textbox
If mintTimer = 0 Then
'do your event.
TimerInterval = 0 ' Stop the timer
End If
End Sub
"Franco Davillo via AccessMonster.com" <forum@AccessMonster.com> wrote in
message news:a5b89027b44f4e68be3c629d0470cce7@AccessMonster.com...
> Do you kindly know some working example? (a link where i can find it?)
> Thx in advance
>
> --
> Message posted via http://www.accessmonster.com
- Next message: \: "Re: vba error"
- Previous message: tclarke_at_merseymail.com: "Continuous Forms Question"
- In reply to: Franco Davillo via AccessMonster.com: "Re: CountDown Access 97"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|