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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refresh a subform or form automatically

Status
Not open for further replies.

Poloxstar

MIS
Jul 10, 2002
11
0
0
US
hi,
I need assistance with forms. I am looking to automatically refresh a form every 2 minutes. Does any know the VBa code to do so. thanks
 
Do i put it on the form load?

Can you be more specific on what to do?
 
Form does have a TimerEvent as Load, Open etc. Scroll through the events, it is near to the bottom.
Your code will be like below.
Code:
Private Sub Form_Timer()
	Me.Refresh
End Sub

Zameer Abdulla
Visit Me (New Look & style)
 
It is not working? where does the Timer interval=2000 come into play?
 
Just after the OnTimer Event in the property box you can see Timer Interval. There you have to add 2000. It means 2 minutes/2000 milli seconds.

BTW, What are you going to do after refreshing the form? Some time you have to use Me.Requery to get the data refreshed.

Zameer Abdulla
Visit Me (New Look & style)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top