Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

Control Source on a Text Box

Discussion in 'Information Technology' started by Intrepid_Yellow, Jul 28, 2006.

  1. Intrepid_Yellow

    Intrepid_Yellow
    Expand Collapse
    Guest

    Hi, I have two combo boxes that each have the options of yes/no/unsure. I
    want my textbox to display "Yes" where both the combos values = yes. if not
    then to display "no".

    HELP! Please...
     
  2. Loading...

    Similar Threads Forum Date
    How To Control The 5 Thieves? Questions and Answers Apr 7, 2016
    General Controlling Kaam (Lust) Hard Talk Apr 8, 2014
    USA Sikh Americans join Barack Obama in urging lawmakers on Gun Control Breaking News Mar 29, 2013
    Controversial SGPC Takes Control of Live Telecast at Bangla Sahib Hard Talk Feb 7, 2013
    USA Sikhs Join Gun Control Debate. Meet with Vice President Biden Breaking News Jan 16, 2013

  3. Pieter Wijnen

    Pieter Wijnen
    Expand Collapse
    Guest

    in the afterupdate event of both cbo's place

    Sub cbo1_AfterUpdate
    If Me.cbo1.value = "yes" and me.cbo2="yes" then
    me.txtbox.value = "yes"
    else
    me.txtbox.value="no"
    end if
    End Sub

    "Intrepid_Yellow" <Intrepid_Yellow@discussions.microsoft.com> wrote in
    message news:D2D8CB29-52B7-4696-93EB-0C01A5C40CE3@microsoft.com...
    > Hi, I have two combo boxes that each have the options of yes/no/unsure. I
    > want my textbox to display "Yes" where both the combos values = yes. if
    > not
    > then to display "no".
    >
    > HELP! Please...
     
  4. Pieter Wijnen

    Pieter Wijnen
    Expand Collapse
    Guest

    in the afterupdate event of both cbo's place

    Sub cbo1_AfterUpdate
    If Me.cbo1.value = "yes" and me.cbo2="yes" then
    me.txtbox.value = "yes"
    else
    me.txtbox.value="no"
    end if
    End Sub

    "Intrepid_Yellow" <Intrepid_Yellow@discussions.microsoft.com> wrote in
    message news:D2D8CB29-52B7-4696-93EB-0C01A5C40CE3@microsoft.com...
    > Hi, I have two combo boxes that each have the options of yes/no/unsure. I
    > want my textbox to display "Yes" where both the combos values = yes. if
    > not
    > then to display "no".
    >
    > HELP! Please...




    --
    ----------------------------------------
    I am using the free version of SPAMfighter for private users.
    It has removed 4231 spam emails to date.
    Paying users do not have this message in their emails.
    Get the free SPAMfighter here: http://www.spamfighter.com/len
     
  5. John Vinson

    John Vinson
    Expand Collapse
    Guest

    On Mon, 17 Jul 2006 18:29:01 -0700, Intrepid_Yellow
    <Intrepid_Yellow@discussions.microsoft.com> wrote:

    >Hi, I have two combo boxes that each have the options of yes/no/unsure. I
    >want my textbox to display "Yes" where both the combos values = yes. if not
    >then to display "no".
    >
    >HELP! Please...


    Me!textbox = Format(Me!combo1 = "Yes" AND Me!combo2 = "Yes", "Yes/No")

    John W. Vinson[MVP]
     
  6. Intrepid_Yellow

    Intrepid_Yellow
    Expand Collapse
    Guest

    ok. i have re-written that to apply to my database. it's all working. how do
    i get that value to save itself in a field against a record?
     
  7. fredg

    fredg
    Expand Collapse
    Guest

    On Mon, 17 Jul 2006 20:21:01 -0700, Intrepid_Yellow wrote:

    > ok. i have re-written that to apply to my database. it's all working. how do
    > i get that value to save itself in a field against a record?


    Why would you want to?
    You don't.

    As long as you have saved the individual values, any time you need the
    result, re-compute it as you already have.

    --
    Fred
    Please respond only to this newsgroup.
    I do not reply to personal e-mail
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page