Nov 13, 2003 #1 jdanner24 Technical User Nov 13, 2003 4 US How do I program (VBA Code) a checkbox to enable and disable txt boxes when the checkbox is next to the textbox. Give me a sample code.
How do I program (VBA Code) a checkbox to enable and disable txt boxes when the checkbox is next to the textbox. Give me a sample code.
Nov 13, 2003 #2 petrosky Technical User Aug 1, 2001 512 AU Hi, you can put the following code into the "on click" event of your check box. If Me.Check4 = True Then Me.Text2.Enabled = True Else: Me.Text2.Enabled = False End If Should work. Regards, Peter Remember- It's nice to be important, but it's important to be nice Upvote 0 Downvote
Hi, you can put the following code into the "on click" event of your check box. If Me.Check4 = True Then Me.Text2.Enabled = True Else: Me.Text2.Enabled = False End If Should work. Regards, Peter Remember- It's nice to be important, but it's important to be nice