mkelly Registered User. Local time Today, 14:43 Joined Apr 10, 2002 Messages 213 Feb 13, 2003 #1 Does anyone know how to use a button, so that once it is clicked it places the time() into a text field and cannot be edited??? Any help appriciated!! Thanks
Does anyone know how to use a button, so that once it is clicked it places the time() into a text field and cannot be edited??? Any help appriciated!! Thanks
chewy SuperNintendo Chalmers Local time Today, 20:43 Joined Mar 8, 2002 Messages 581 Feb 13, 2003 #2 i was wondering about the time function too
Mile-O Back once again... Local time Today, 20:43 Joined Dec 10, 2002 Messages 11,305 Feb 13, 2003 #3 In the button's Click event put the code: txtYourTextBoxHere = Time() If you want to disable the box from data entry use: txtYourTextBoxHere.Enabled = False txtYourTextBoxHere.Locked = True
In the button's Click event put the code: txtYourTextBoxHere = Time() If you want to disable the box from data entry use: txtYourTextBoxHere.Enabled = False txtYourTextBoxHere.Locked = True
chewy SuperNintendo Chalmers Local time Today, 20:43 Joined Mar 8, 2002 Messages 581 Feb 13, 2003 #4 i tried that before and it gave me an error. But now it worked... oh well it works now
mkelly Registered User. Local time Today, 14:43 Joined Apr 10, 2002 Messages 213 Feb 13, 2003 #5 Thanks for the help!!
ColinEssex Old registered user Local time Today, 20:43 Joined Feb 22, 2002 Messages 9,314 Feb 13, 2003 #6 or just lock it in the fields properties Col
Mile-O Back once again... Local time Today, 20:43 Joined Dec 10, 2002 Messages 11,305 Feb 13, 2003 #7 And if you are going to disable the button and it has the focus, be sure to move the focus to another control first.
And if you are going to disable the button and it has the focus, be sure to move the focus to another control first.