Hi All
I am trying to follow a simple instruction adding a working clock on my Main Form of my database. For some reason the clock is just not displaying and would like to know if someone can have a look at it for me please?
I am trying to follow this instructions:
To put a simple text clock on a form, create a Label called lblClock on the form, set the form's TimerInterval to 1000, and the following code behind the Timer Event.
***************** Code Start ***************
Private Sub Form_Timer()
Me!lblClock.Caption = Format(Now, "dddd, mmm d yyyy, hh:mm:ss AMPM")
End Sub
***************** Code End***************
The highlighted section on the MainForm.jpg is where I want the clock to show:
I want it to look like clock.gif file.
Please if anyone can show me where I am going wrong will really appreciate it.
Thanks
I am trying to follow a simple instruction adding a working clock on my Main Form of my database. For some reason the clock is just not displaying and would like to know if someone can have a look at it for me please?
I am trying to follow this instructions:
To put a simple text clock on a form, create a Label called lblClock on the form, set the form's TimerInterval to 1000, and the following code behind the Timer Event.
***************** Code Start ***************
Private Sub Form_Timer()
Me!lblClock.Caption = Format(Now, "dddd, mmm d yyyy, hh:mm:ss AMPM")
End Sub
***************** Code End***************
The highlighted section on the MainForm.jpg is where I want the clock to show:
I want it to look like clock.gif file.
Please if anyone can show me where I am going wrong will really appreciate it.
Thanks
Attachments
Last edited: