Re: Simple Question

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


Date: Fri, 23 Jul 2004 14:42:40 -0700

I know the feeling;-)

-- 
Reggie
----------
"Sandra Daigle" <Invalid@KeepYourSpam.org> wrote in message
news:%23RpSzALcEHA.3480@TK2MSFTNGP11.phx.gbl...
> Exactly - that's how I'd typically do it (would have recommened it myself
> but I hadn't had my morning coffee yet!).
>
> -- 
> Sandra Daigle [Microsoft Access MVP]
> Please post all replies to the newsgroup.
>
>
> Reggie wrote:
> > Or
> > Me.txtBox1.Enabled = Me.chkBox
> > Me.txtBox2.Enabled = Me.chkBox
> >
> >
> > ----------
> > "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 the ... > For the benefit of others please post all replies to this newsgroup. ...
    (microsoft.public.access.gettingstarted)
  • Re: hyperlink
    ... Sandra Daigle [Microsoft Access MVP] ... Please post all replies to the newsgroup. ... >>> Wait at least a day or two before reposting and then, ...
    (microsoft.public.access.formscoding)
  • Re: hyperlink
    ... >> LOL! ... >> Sandra Daigle >> Please post all replies to the newsgroup. ...
    (microsoft.public.access.formscoding)
  • 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)
  • Re: On Current
    ... Sandra Daigle ... >> Please post all replies to the newsgroup. ... >> Jacob wrote: ...
    (microsoft.public.access.forms)