access 2000

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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
 
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.
 
Le 28/10/05 12:50, dans (e-mail address removed),
« 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
--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top