![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Hello, I have 2 checkboxes in a form: chk1 and chk2 Here's what I want: If chk1 is checked, chk2 can be both checked or not checked... If chk1 is not checked, chk2 can not be checked! How can I do this? Thanks, Oswald |
#2
| |||
| |||
|
|
Hello, I have 2 checkboxes in a form: chk1 and chk2 Here's what I want: If chk1 is checked, chk2 can be both checked or not checked... If chk1 is not checked, chk2 can not be checked! How can I do this? Thanks, Oswald |
#3
| |||
| |||
|
|
"Oswald" <fluffster71 (AT) hotmail (DOT) com> wrote Hello, I have 2 checkboxes in a form: chk1 and chk2 Here's what I want: If chk1 is checked, chk2 can be both checked or not checked... If chk1 is not checked, chk2 can not be checked! How can I do this? Thanks, Oswald ************************************************** *********** Hi Oswald, Go to the chk2 checkbox properties, click on the data tab and set the enabled property to no. Next go to the click even of chk1 checkbox and put this code in: if me.chk1 = true then me.chk2.enabled = true 'to enable it and allow it to be checked else me.chk2.enabled = false 'to disable it and not allow it to be checked end if This should do the trick. Amber |
|
if me.chk1 = true then me.chk2.enabled = true 'to enable it and allow it to be checked else me.chk2.enabled = false 'to disable it and not allow it to be checked me.chk2 = false 'to make sure that if chk2 is checked, chk2 is |
|
end if |
![]() |
| Thread Tools | |
| Display Modes | |
| |