Mar 23, 2005 #1 Poloxstar MIS Jul 10, 2002 11 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
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
Mar 23, 2005 #2 ZmrAbdulla Technical User Apr 22, 2003 4,364 AE Use the timer event to refresh. Timer interval=2000 Zameer Abdulla Visit Me (New Look & style) Upvote 0 Downvote
Mar 23, 2005 Thread starter #3 Poloxstar MIS Jul 10, 2002 11 US Do i put it on the form load? Can you be more specific on what to do? Upvote 0 Downvote
Mar 23, 2005 #4 ZmrAbdulla Technical User Apr 22, 2003 4,364 AE 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) Upvote 0 Downvote
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)
Mar 23, 2005 Thread starter #5 Poloxstar MIS Jul 10, 2002 11 US It is not working? where does the Timer interval=2000 come into play? Upvote 0 Downvote
Mar 23, 2005 #6 ZmrAbdulla Technical User Apr 22, 2003 4,364 AE 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) Upvote 0 Downvote
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)