Problem with button control

mkelly

Registered User.
Local time
Today, 14:44
Joined
Apr 10, 2002
Messages
213
This is the code I placed in the button.

Option Compare Database

Private Sub Command8_Click()
txttime_in = time()
txttime_in.Enabled = False
txttime_in.Locked = True
End Sub


It is supposed to put the time() into the time In text box when clicked. Nothing happens when I click it!!!!

Any help is much appriciated......
 
Private Sub Command8_Click()
txttime_in.text = time()
txttime_in.Enabled = False
txttime_in.Locked = True
End Sub
 
Rather than Time(), you could also try TimeValue(Now())
 
i'm really confused.
:confused:

can't I have a LABEL ot a TEXT BOX which automatically displays the current time in it?
 

Users who are viewing this thread

Back
Top Bottom