Adding a clock to a form involves a little VBA programming, but not too much. For those who are quite unfamiliar with this, then I will step you through it.
The objective of this tip is to add a dynamic clock to a form on your database.
To do this:
Now, if you open your form in Normal view the unbound text box will display the current time. But, you will notice if you leave the form open the time will not change. We are going to fix this.
The VBA window will open with the following two lines of code:
Private Sub Form_Timer()
End Sub
Between these two lines of code add the following line of code:
Me.txtClock.RequeryClose the VBA window and open the form in Normal view.
You have completed Adding a Clock to a Form.... well done Your clock should now be operating.
Finished with Adding a clock to a form; then return to 'Microsoft Access Forms'
or Return to Simply-Access Home Page