R
Rohn
I want to add a running clock to a form. I used the following code in an older database and it seemed works. It wont work on my Access 2000.
I created a Label called lblClock on my form. Then I set the TimerInterval on the form to 1000 and put the following code in the Timer Event.
****************
Private Sub Form_Timer()
Me!lblClock.Caption = Format(Now, "dddd, mmm d yyyy, hh:mm:ss AMPM")
End Sub
Private Sub cmdClockStart_Click()
Me.TimerInterval = 1000
End Sub
Private Sub cmdClockEnd_Click()
Me.TimerInterval = 0
End Sub
****************
I get, Run-time error '438': Object doesn't support this property or method
Any ideas on what I am doing wrong?
Thanks, Rohn
I created a Label called lblClock on my form. Then I set the TimerInterval on the form to 1000 and put the following code in the Timer Event.
****************
Private Sub Form_Timer()
Me!lblClock.Caption = Format(Now, "dddd, mmm d yyyy, hh:mm:ss AMPM")
End Sub
Private Sub cmdClockStart_Click()
Me.TimerInterval = 1000
End Sub
Private Sub cmdClockEnd_Click()
Me.TimerInterval = 0
End Sub
****************
I get, Run-time error '438': Object doesn't support this property or method
Any ideas on what I am doing wrong?
Thanks, Rohn