Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

Check Box

Discussion in 'Information Technology' started by Rockwater, Jul 28, 2006.

Tags:
  1. Rockwater

    Rockwater
    Expand Collapse
    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
     
  2. Loading...


  3. Michael H

    Michael H
    Expand Collapse
    Guest

    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


    "Rockwater" wrote:

    > 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
     

Share This Page