Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Timer +Event

Status
Not open for further replies.

davetek

Programmer
Oct 30, 2002
42
IE
Hey,

I have a form, which displays data from tables...multiple users input data to these tables....
what i need to do is have this form refresh every 30 secs or so.....
i have a refresh button which does the trick:

Sub refresh()
Form_ViewData.Refresh
End Sub

however, what i want, is to execute this function with a timer.....

anyone?

cheers...
 
Hi davetek,

Open your form in design view, set the Timer Interval to 30000.

In the On Timer event:

Form_ViewData.Refresh

Should do what you want.

Bill

 
Hi davetek,

Actually, that should have read:

Me.Refresh

Or

Forms!Form_ViewData.Refresh

Form_ViewData.Refresh isn't correct syntax, though it might have worked for this method, for other methods you might experience problems.

Bill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top