Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

access 2000

Discussion in 'Information Technology' started by Ivette, Oct 29, 2005.

Tags:
  1. Ivette

    Ivette
    Expand Collapse
    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.
     
  2. Loading...


  3. Douglas J Steele

    Douglas J Steele
    Expand Collapse
    Guest

    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.

    --
    Doug Steele, Microsoft Access MVP
    http://I.Am/DougSteele
    (no e-mails, please!)


    "Ivette" <Ivette@discussions.microsoft.com> wrote in message
    news:E54AB4AE-DA58-4F93-A638-E5CDC3CCB882@microsoft.com...
    > 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.
     
  4. Arvin Meyer [MVP]

    Arvin Meyer [MVP]
    Expand Collapse
    Guest

    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

    "Ivette" wrote:

    > 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.
     
  5. nathalie rondeau

    nathalie rondeau
    Expand Collapse
    Guest

    Le 28/10/05 12:50, dans E54AB4AE-DA58-4F93-A638-E5CDC3CCB882@microsoft.com,
    « Ivette » <Ivette@discussions.microsoft.com> a écrit :

    > 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
    --
     

Share This Page