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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Digital Clock 1

Status
Not open for further replies.

kammilla

Instructor
Jan 19, 2003
5
NO
In a form in Access I want a field who always show me the correct time hh:mm:ss
What shall I do in this field ??
 
Take a look at the TimerInterval and OnTimer properties of your form.

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Hi:

Put this code in your form's ON LOAD event:

Me!lblClock.Caption = Format(Now, "dddd, mmm d, yyyy, hh:mm:ss AMPM")
Me.TimerInterval = 1000

Put this code in the TIMER INTERVAL event:

Me!lblClock.Caption = Format(Now, "dddd, mmm d, yyyy, hh:mm:ss AMPM")


Then, but a label on the form called "lblClock" (without the quotes) and you're done.

Borrowed from someone


Hope this helps
Hymn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top