Check Box

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All,

I have 10 text boxes on my form, what I would like is when I check the check
box it deactivates 5 of them. Is this possible, even if it could change the
setting some how.

Thanks in advance...
Dave
 
Hi.

In the Click event of the CheckBox, place one line like the following for
each TextBox that should be disabled when the CheckBox is checked:

Me.TextBox1Name.Enabled = Not (Me.CheckBoxName.Value)

Be sure to use the actual names of your controls.

-Michael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top