enable/disable based on check box


Posted by Rob W on January 18, 2002 10:48 AM

Help! My file was damaged and now I dont remeber my code to enable or disable a text box depending on whether the check box is checked or not.

Can someone help me? I know it is in the properties but cant seen to remeber which one and what I had before.

Thanks....

Posted by Juan Pablo G. on January 18, 2002 11:26 AM

Sub CheckBox1_Click()
TextBox1.Enabled = CheckBox1
End Sub

Juan Pablo G.



Posted by Rob W on January 18, 2002 11:47 AM

Juan Pablo you are the man!

Thanks a lot buddy!