I am using 10 radio buttons to determine which production line report to create.
I can use IF statements to accomplish this, but I'm wondering if it is possible to loop through the radio buttons, testing programmatically which one is "True"
My radio buttons are named opLine1 thru opLine10.
I've tried this with no success.
************************************************************
Dim thisBtn as OptionButton, LineNbr as Integer
For LineNbr = 1 To 10
Set thisBtn.name = "opLine" & LineNbr
If thisBtn.value = True Then
Call GetLineTotals (LineNbr) ' a sub to create a report
Exit Sub
End If
Next
Anyone have experience working with controls in this manner?
I can use IF statements to accomplish this, but I'm wondering if it is possible to loop through the radio buttons, testing programmatically which one is "True"
My radio buttons are named opLine1 thru opLine10.
I've tried this with no success.
************************************************************
Dim thisBtn as OptionButton, LineNbr as Integer
For LineNbr = 1 To 10
Set thisBtn.name = "opLine" & LineNbr
If thisBtn.value = True Then
Call GetLineTotals (LineNbr) ' a sub to create a report
Exit Sub
End If
Next
Anyone have experience working with controls in this manner?