Lanason Registered User. Local time Today, 14:09 Joined Sep 12, 2003 Messages 258 Sep 30, 2003 #1 How do I display the CURRENT time on a form - ie keeps updating without refreshing the form ??
Mile-O Back once again... Local time Today, 14:09 Joined Dec 10, 2002 Messages 11,316 Sep 30, 2003 #2 Put a caption on your form. Call it lblCurrentTime. Open the Form's properties. Set the Form's TimerInterval to 1000. In the OnTimer event put this code: Code: Me.lblCurrentTime = Now() This, however, is pointless as you typically have a clock on your computer in the bottom right corner anyway. It'll also slow down your system.
Put a caption on your form. Call it lblCurrentTime. Open the Form's properties. Set the Form's TimerInterval to 1000. In the OnTimer event put this code: Code: Me.lblCurrentTime = Now() This, however, is pointless as you typically have a clock on your computer in the bottom right corner anyway. It'll also slow down your system.
Lanason Registered User. Local time Today, 14:09 Joined Sep 12, 2003 Messages 258 Sep 30, 2003 #3 caption ?? whats a Caption ? is it a text box or button. Speed is not an issue and I want to display date and time in a particular part of the screen. The time on my task bar hides on my pc and needs a mouse move to activate ....
caption ?? whats a Caption ? is it a text box or button. Speed is not an issue and I want to display date and time in a particular part of the screen. The time on my task bar hides on my pc and needs a mouse move to activate ....
IMO Now Known as ___ Local time Today, 14:09 Joined Sep 11, 2002 Messages 723 Sep 30, 2003 #4 Re: caption ?? Lanason said: whats a Caption ? is it a text box or button. Click to expand... A label. I think you may have to put this in the OnTimer event Code: Me!lblCurrentTime .Caption = Format(Now, "hh:mm:ss") IMO
Re: caption ?? Lanason said: whats a Caption ? is it a text box or button. Click to expand... A label. I think you may have to put this in the OnTimer event Code: Me!lblCurrentTime .Caption = Format(Now, "hh:mm:ss") IMO
Mile-O Back once again... Local time Today, 14:09 Joined Dec 10, 2002 Messages 11,316 Sep 30, 2003 #5 Sorry, meant a label.
Lanason Registered User. Local time Today, 14:09 Joined Sep 12, 2003 Messages 258 Sep 30, 2003 #6 Wow thats dead cool - thanks .......