Talk About Network

Google





Software > Access Forms > Re: Active, Ina...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 6 Topic 44632 of 46786
Post > Topic >>

Re: Active, Inactive textboxes

by AccessDB <scl1974@[EMAIL PROTECTED] > Aug 7, 2008 at 10:38 AM

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?
 




 6 Posts in Topic:
Active, Inactive textboxes
AccessDB <scl1974@[EMA  2008-08-06 12:08:09 
Re: Active, Inactive textboxes
Piet Linden <PieterLin  2008-08-06 14:36:44 
Re: Active, Inactive textboxes
AccessDB <scl1974@[EMA  2008-08-07 10:38:31 
Re: Active, Inactive textboxes
"Douglas J. Steele&q  2008-08-07 15:38:09 
Re: Active, Inactive textboxes
AccessDB <scl1974@[EMA  2008-08-07 12:54:23 
Re: Active, Inactive textboxes
"Douglas J. Steele&q  2008-08-07 17:18:43 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Fri Jan 9 16:39:23 PST 2009.