|
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 week’s tip is to add a dynamic clock to a form on your database. To do this:
Open a form, any form, and add an unbound text box;
Open the properties window for this text box;
Click on the ‘Format’ tab and change the Format to ‘Long Time’;
Then, click on the ‘Other’ tab and change the ‘Name’ of the text box to txtClock;
Then, click on the ‘Data’ tab and type into the ‘Control Source’ section:
=time()
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.
Re-open the form in Design view and open the properties window for the form;
|