none
is it possible to group a botton just like your radiobotton? RRS feed

  • Question

  • I have 3 bottons on a form and Bennett each botton I have combobox, which there are not set to visible(visible : NO). And I want if the user click on the first botton let the Bennett combo box visible. And when the user click on the second botton let the bennett combo box visible and the fisrt combo box should be invisible . Thank you all and I hope you all understand my questions. 
    Tuesday, October 11, 2016 3:07 PM

Answers

  • You need to set the Visible property of all three combo boxes in each button's Click event procedure.  So in the first button's Click event procedure:

    Me.[FirstComboBox].Visible = True
    Me.[SecondComboBox].Visible = False
    Me.[ThirdComboBox].Visible = False

    in the second button's:

    Me.[FirstComboBox].Visible = False
    Me.[SecondComboBox].Visible = True
    Me.[ThirdComboBox].Visible = False

    and in the third button's:

    Me.[FirstComboBox].Visible = False
    Me.[SecondComboBox].Visible = False
    Me.[ThirdComboBox].Visible = True

    Ken Sheridan, Stafford, England

    • Marked as answer by MC COOLEST Tuesday, October 11, 2016 4:57 PM
    Tuesday, October 11, 2016 4:02 PM

All replies

  • You need to set the Visible property of all three combo boxes in each button's Click event procedure.  So in the first button's Click event procedure:

    Me.[FirstComboBox].Visible = True
    Me.[SecondComboBox].Visible = False
    Me.[ThirdComboBox].Visible = False

    in the second button's:

    Me.[FirstComboBox].Visible = False
    Me.[SecondComboBox].Visible = True
    Me.[ThirdComboBox].Visible = False

    and in the third button's:

    Me.[FirstComboBox].Visible = False
    Me.[SecondComboBox].Visible = False
    Me.[ThirdComboBox].Visible = True

    Ken Sheridan, Stafford, England

    • Marked as answer by MC COOLEST Tuesday, October 11, 2016 4:57 PM
    Tuesday, October 11, 2016 4:02 PM
  • OK thank you mister Ken Sheriden

    Let me give it a try and see.

    Tuesday, October 11, 2016 4:50 PM
  • It works, thank you very much
    Tuesday, October 11, 2016 4:57 PM