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!

Enable and Disable TxtBoxes

Status
Not open for further replies.

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.
 
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 :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top