refresh form automatically

Vespertin

Registered User.
Local time
Yesterday, 17:44
Joined
May 8, 2011
Messages
11
hello

can anyone advice the best way for a form to refresh automatically say every 5 minutes when the form is open?

Thanks for any advice you can give.
 
Hi Vespertin

I'm not very familiar with the details, but I believe this can be done using the On Timer and TimerInterval form events. Here's an example from the help files.
Code:
Sub Form_Load()
    Me.TimerInterval = 1000
End Sub
 
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
 

Users who are viewing this thread

Back
Top Bottom