pistonbroke
New Member
- Joined
- Jan 15, 2003
- Messages
- 49
I have a user form with two Frames, each containing 20 radio or option buttons. I want to run some code independently based on the selected button (value=true) in each frame. I can make it work fine by having separate event programming for each button, which calls out a sub-routine, but this seems like a long way around it..
example....
Private Sub OptionButton6_Click()
Call Set_Baseline
End Sub
Private Sub OptionButton7_Click()
Call Set_Baseline
End Sub
Private Sub OptionButton8_Click()
Call Set_Baseline
End Sub
Obviously i have 40 sets of the above lines of code.. Is there a way to have the sub-routine run based on clicking any radio button inside each Frame control ? I can't find a Frame property that does this. I also do not want to add an additional "Submit" button, even though this would work as i want the action to occurr just by clicking any radio button ?
Any help appreciated. Thanks.
example....
Private Sub OptionButton6_Click()
Call Set_Baseline
End Sub
Private Sub OptionButton7_Click()
Call Set_Baseline
End Sub
Private Sub OptionButton8_Click()
Call Set_Baseline
End Sub
Obviously i have 40 sets of the above lines of code.. Is there a way to have the sub-routine run based on clicking any radio button inside each Frame control ? I can't find a Frame property that does this. I also do not want to add an additional "Submit" button, even though this would work as i want the action to occurr just by clicking any radio button ?
Any help appreciated. Thanks.