On Aug 6, 4:36=A0pm, Piet Linden <PieterLin...@[EMAIL PROTECTED]
> wrote:
> On Aug 6, 2:08=A0pm, AccessDB <scl1...@[EMAIL PROTECTED]
> wrote:
>
> > I have a form needs to be filled out. A lot of the questions are a
yes/
> > no question. When they pick yes I want some other textboxes to be
> > active, and when they pick no I want the textboxes to be inactive.
> > Example - A question could be: Do you have siblings. If you check yes,
> > then other line would appear to say How many (other textboxes are
> > active)? If you say no, then it skips to the next question (other
> > textboxes are inactive - greyed out).
> > How do I do this? If it includes coding, can I get help with the
> > coding.
>
> in the afterupdate of your checkbox, set the Enabled property of the
> relevant textboxes.
>
> Sub MyCheckBox_AfterUpdate()
> =A0 =A0 Me.txt1.Enabled=3D(MyCheckBox=3DChecked)
> =A0 =A0 Me.txt2.Enabled=3DNot (MyCheckBox=3DChecked)
> End Sub
I'm new to coding so in your code Me.txt1.Enabled=3D(MycheckBox=3DChecked)
- is the txt1 the name of my textbox on my form? If so, then what is
the second line of code for?


|