access 2000

I

Ivette

I am learning Access 2000 and I am trying to learn to add an event timer on a
form. I seem to have a problem trying to do it. Could someone give a run down
on how to go about it? Thank you.
 
A

Arvin Meyer [MVP]

In Access, the form itself has a Timer event. Open the property sheet for the
form, go to the Events tab and scroll down to the Timer event. Add an [Event
Procedure] and set the TimerInterval (in milliseconds)
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads
http://www.datastrat.com
http://www.mvps.org/access
 
D

Douglas J Steele

In the form's Load event (or whatever other event makes sense), set the
TimerInterval property for however many milliseconds you want to wait until
the event is triggered. For instance, to wait 1 second:

Me.TimerInterval = 1000

In the form's Timer event (labelled On Timer on the form's Properties tab),
put code for what you want to have happen:

Sub Form_Timer()
Static intShowPicture As Integer
If intShowPicture Then
' Show icon.
Me!btnPicture.Picture = "C:\Icons\Flash.ico"
Else
' Don't show icon.
Me!btnPicture.Picture = ""
End If
intShowPicture = Not intShowPicture
End Sub

In the above, the picture will be displayed, then a second later it will be
removed, then a second later it will be displayed again and so on. If you
don't want the event to occur again, you put Me.TimerInterval = 0.
 
N

nathalie rondeau

Le 28/10/05 12:50, dans [email protected],
« Ivette » said:
I am learning Access 2000 and I am trying to learn to add an event timer on a
form. I seem to have a problem trying to do it. Could someone give a run down
on how to go about it? Thank you.
jjjjjjjjiuj
--
 
Top