I have a VB 2005 form with 140 different radiobuttons...
Some are "checked", some are not...
I want to reset all radiobuttons to "unchecked" .
I've been searching and trying differnet things...there must be a way to access radiobuttons by their "names"...
Typical names used include...
RadioButton011
RadioButton012
RadioButton013
...
RadioButton285
28 rows of 5 radiobuttons = 140 radiobuttons
I would like to cycle through the radiobutton list via 2 nested loops to inquire the status of each radiobutton...
Is there a way to concatenate the name of the radiobutton???? ?
Typical code to do the inquiry would be as follows...
For I = 1 to 28
For I2 =1 to 5
if ("RadioButto n" & I & I2).checked = True then
...do something...
next I2
next I
I'm stuck now for 3 days...need help...all help appreciated!
Pete
Some are "checked", some are not...
I want to reset all radiobuttons to "unchecked" .
I've been searching and trying differnet things...there must be a way to access radiobuttons by their "names"...
Typical names used include...
RadioButton011
RadioButton012
RadioButton013
...
RadioButton285
28 rows of 5 radiobuttons = 140 radiobuttons
I would like to cycle through the radiobutton list via 2 nested loops to inquire the status of each radiobutton...
Is there a way to concatenate the name of the radiobutton???? ?
Typical code to do the inquiry would be as follows...
For I = 1 to 28
For I2 =1 to 5
if ("RadioButto n" & I & I2).checked = True then
...do something...
next I2
next I
I'm stuck now for 3 days...need help...all help appreciated!
Pete
Comment