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

having a form requery on timer 1

Status
Not open for further replies.

WallT

Vendor
Aug 13, 2002
247
US
I have a form that i need to requery every couple of minutes, however, i have never used the OnTimer Event, and have failed each time I have tried. Can somebody please point me in the right direction?
 
How are ya WallT . . . . .

In the [blue]OnLoad[/blue] event of the form:
Code:
[blue]   Me.TimerInterval = [purple][b]TimerValue in milliseconds[/b][/purple]

Example:
    Me.TimerInterval = [purple][b]1000[/b][/purple] 'One Second Timer[/blue]
Then in the OnTimer event of the form:
Code:
[blue]   Me.Requery[/blue]
[purple]Cheers![/purple]

Calvin.gif
See Ya! . . . . . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top