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!

Updating Fields in a form when i click on something

Status
Not open for further replies.

Guy2

IS-IT--Management
Apr 15, 2004
1
US
I have a form that has two name fields and a click box, when i enter the first name, i have the option to check the click box and i want the name in the first name feild to be filled in as the name in the 2nd name field as well...how can i do this so it updates right away and changes teh 2nd field, ive tried a few things, but nothing seems to work when i click...thanks
 
I assume you want the second textbox (txtB) to be set equal to the first textbox (txtA) whenever this checkbox (Check1) is clicked to "Yes". To do this, in the OnClick event of your checkbox place this code:

[tt]
If Check1 = -1 Then
txtB = txtA
Else
txtB = ""
End If
[/tt]

HTH Joe Miller
joe.miller@flotech.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top