Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clock on form

Status
Not open for further replies.

Zorro1265

Technical User
Nov 14, 2000
181
US
How do I get a form to display a clock (more or less). I can get it to show when the form was opened but it wont update my time. Zorro
 
You need to set a Timer Interval and On Timer event on your form. To update the clock every second, set your Timer Interval to 1000, then set your On Timer event to the following:

Me.lblTime.Caption = Format(Now(), "hh:nn:ss")

In this example it changes the caption of the label "lblTime" to the current time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top