How to change a control property with the value of another cotrol

mikejerez

Registered User.
Local time
Today, 12:02
Joined
Jul 26, 2008
Messages
10
This the scenario I am trying to create:

I want a checkbox to change the Enabled property of a textbox to 'Yes' if the checkbox is checked and to 'No' if the checkbox is unchecked.
 
try:

Code:
If Me.Checkboxname = True Then
 Me.Textboxname.Enabled = True
Else
 Me.Textboxname.Enabled = False
End If

You have to put the actual names of your checkbox and textbox
 
Thanks, that worked nicely!!!
 

Users who are viewing this thread

Back
Top Bottom