Re: Simple Question

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Reggie (NoSpamreggie_at_NoSpamsmittysinet.com)
Date: 07/23/04


Date: Fri, 23 Jul 2004 03:48:40 -0700

Or
Me.txtBox1.Enabled = Me.chkBox
Me.txtBox2.Enabled = Me.chkBox

-- 
Reggie
----------
"Sandra Daigle" <Invalid@KeepYourSpam.org> wrote in message
news:eGXuPGKcEHA.2520@TK2MSFTNGP12.phx.gbl...
> Hi Chris,
>
> And is a logical operator - it only returns true or false based on the
> logical outcome of Anding two (or more) values.
>
> You need multiple assignment statements:
>
>  IF chkbox .value = -1 Then
>     txtBox1.enabled = True
>     txtBox2.enabled = true
> else
>     txtBox1.enabled = false
>     txtBox.enabled = False
> End If
>
> -- 
> Sandra Daigle
> [Microsoft Access MVP]
> For the benefit of others please post all replies to this newsgroup.
>
> Chris wrote:
> > I am trying to enable 3 text boxes when a check box is ticked.  I can
get
> > one text box to enable and disable when the tick box is clicked.  I have
> > tried the method
> >
> >     IF chkbox .value = -1 Then
> >         txtBox1.enabled = True And txtBox2.enabled = true
> >             Else txtBox1.enabled = false And txtBox.enabled = False
> >    End If
>


Relevant Pages

  • Re: Simple Question
    ... "Sandra Daigle" wrote in message ... >>> Hi Chris, ... >>> And is a logical operator - it only returns true or false based on ... >>> For the benefit of others please post all replies to this newsgroup. ...
    (microsoft.public.access.gettingstarted)
  • Re: Simple Question
    ... Sandra Daigle [Microsoft Access MVP] ... >> Hi Chris, ... >> And is a logical operator - it only returns true or false based on ...
    (microsoft.public.access.gettingstarted)