Re: Simple Question
From: Reggie (NoSpamreggie_at_NoSpamsmittysinet.com)
Date: 07/23/04
- Next message: Reggie: "Re: Open a form from a record in Querry result or Table"
- Previous message: John Vinson: "Re: Getting info from 2 different tables and putting it into a third"
- In reply to: Sandra Daigle: "Re: Simple Question"
- Messages sorted by: [ date ] [ thread ]
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 > >
- Next message: Reggie: "Re: Open a form from a record in Querry result or Table"
- Previous message: John Vinson: "Re: Getting info from 2 different tables and putting it into a third"
- In reply to: Sandra Daigle: "Re: Simple Question"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|