OnTimer

The OnTimer event occurs at a user-defined interval when it is enabled. This event is used to perform some action based upon defined time interval. For example, how long it takes to complete a task.

Group:   Events

Applies to:    Application Form

Syntax:   OnTimer()

Example:

First the timer interval is set and the timer is enabled.

Public Sub Form_Load()

  On Error Resume Next

  App.TimerInterval = 1000

  App.TimerEnabled = True

End Sub

'OnTimer event is given some logic.

Public Sub Form_OnTimer()

  On Error Resume Next

  'your logic

End Sub