Hi,
I have frmReports that I'm using as a dashbooard for a variety of information running off the server. Presently when I want to refresh the info I click a button that runs code to requery the various info. Is there code that will automatically requery the form say every 15 minutes?
Thanks,
Leesha
Auto Requery/Refresh
-
- Administrator
- Posts: 78474
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Auto Requery/Refresh
You could set the TimerInterval property of the form (on the Event tab of the Properties window) to 900000 (milliseconds; 15 minutes = 900 seconds = 900,000 milliseconds), and write code in the On Timer event of the form to requery (you can use the same code as in the On Click event of the command button).
Best wishes,
Hans
Hans
-
- BronzeLounger
- Posts: 1488
- Joined: 05 Feb 2010, 22:25
Re: Auto Requery/Refresh
If frmReports has a tab control on it, each of which contains forms, will setting the on timer event for frmReports requery everything on the form or should I set this for each of the subforms as well?
Thanks!
Leesha
Thanks!
Leesha
-
- Administrator
- Posts: 78474
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Auto Requery/Refresh
You could requery/refresh the subforms from the On Timer event of the main form. You don't have to create an On Timer event procedure for each subform.
Best wishes,
Hans
Hans