Display a counter

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

Is there any way I can display a continuous timer in a cell, ie start a
counter that changes value every second.
 
Hi

Is there any way I can display a continuous timer in a cell, ie start a
counter that changes value every second.


The form has a Timer property. If during the Form Load event, the
TimerInterval property is set to 1000, the form timer event will fire
every 1000 milliseconds. In the code below, the sleTimerDisplay is an
unbound control on the form.
It's value is updated with the current time every second.

Private Sub form_load()
Me.TimerInterval = 1000

End Sub

Private Sub Form_Timer()
Me.sleTimerDisplay.Value = Now()
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top