Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update Radio Button Option Group based on Combo Box selection

Status
Not open for further replies.

xuanb

Programmer
Apr 9, 2003
29
US
Hi,
How do I update a group of radio buttons based on a selection in a combo box.

My code doesn't work. Please give advice.

Me.option_group.ControlSource = "SELECT OGValue FROM MyTable" & _
" WHERE MyTable.ComboBoxValue = '" & Me.ComboBoxValue & "';"

Your help is much appreciated!
xuanb
 
xu: Try referencing the combo box like:

Me.cboTest.Column(0)

...see if that helps.
 
I'm assuming that the combo's bound column is 1 and that in that column is the value of the radio buttons you wish to reference.

Me.OptGroup.Value = Me.cboButtonSelect
All of the radio buttons will have avalue within the option group and the combo needs to reflect that value.
don't forget to requery the option group after_update
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top