
12-08-2004, 02:03 AM
|
|
Restricted
|
|
Join Date: Nov 2004
Posts: 444
|
|
You don't do it as so.
You have to insert the timer on your form, set it's interval property to 1000, double click it, and then insert your code :
Me.lblTime.Caption = "" & _
Format(Now, "hh:mm:ss am/pm")
So if your timer is timer1, it goes like this (you don't need the qoutes):
Code:
Private Sub Timer1_Timer()
Me.lblTime.Caption = Format(Now, "hh:mm:ss am/pm")
End Sub

|
|