I am attempting to add a clock to an access form, mainly following this thread:
When I compile the module I get this error:
Compile Error:
Invalid use of Me keyword
Here is the code that I am using:
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 appreciate any help you might have.
When I compile the module I get this error:
Compile Error:
Invalid use of Me keyword
Here is the code that I am using:
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 appreciate any help you might have.