Welcome to SPN

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

Sign Up Now!
  1. Guest ji, please consider donating today!
      Become a Supporter    ::   Make a Contribution   
    Monthly Recurring Target: $300 :: Achieved: $95

Check Box

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

Tags:
  1. tanhus

    tanhus
    Expand Collapse
    Guest

    I have a check box in a form. I want a msg box to pop up everytime it is
    clicked on. Asking the user if he/she wants to continue. If user says yes
    then the box changes from unchecked to checked or from checked to unchecked.
    If user says no then the box stays the same. Im having problems writing the
    code for this.
    Thanks to those who can help.
     
  2. Loading...


  3. Ofer Cohen

    Ofer Cohen
    Expand Collapse
    Guest

    I hope that my post on the "Forms Coding" will answer your question

    http://www.microsoft.com/office/com...ding&mid=932ed400-8131-4252-97bf-82d308c11137
    --
    Good Luck
    BS"D


    "tanhus" wrote:

    > I have a check box in a form. I want a msg box to pop up everytime it is
    > clicked on. Asking the user if he/she wants to continue. If user says yes
    > then the box changes from unchecked to checked or from checked to unchecked.
    > If user says no then the box stays the same. Im having problems writing the
    > code for this.
    > Thanks to those who can help.
     
  4. FD

    FD
    Expand Collapse
    Guest

    tanhus wrote:
    > I have a check box in a form. I want a msg box to pop up everytime it is
    > clicked on. Asking the user if he/she wants to continue. If user says yes
    > then the box changes from unchecked to checked or from checked to unchecked.
    > If user says no then the box stays the same. Im having problems writing the
    > code for this.
    > Thanks to those who can help.


    Ok Tanhus urs is not a big issue.
    on checkbox click write following in VBA code.

    Private Sub Check10_Click()
    If MsgBox("Yes/No", vbYesNo) = vbYes Then Check10.Value = Not
    Check10.Value
    End Sub

    Good Luck!!
     
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