|
Question : Option Button array
|
|
I can not create array of control option buttons. I need to have array of option buttons like option1(0) and option1(1) . In process of creating controls array my access(2003) is not responding as it should or I am doing something wrong.
I put first option button on my form name that Option1 then I copied it and pasted on the form. I opened property and saw that name is Option2. I renamed it to Option1. I was expected that access will ask me do I want to create array as I already have option button named Option1 but nothing happened. New control accepted name Option1 but when I reopened property it had old name Option2. I dont want to use Option group I need array of option buttons.
What I am doing wrong? Taras
|
|
Answer : Option Button array
|
|
Probably the best work-around would be to name your option buttons with a similar naming convension, like choice1, choice2, choice3, etc. and then in VBA code behind the form you can do something like this.
For x = 1 to MaxChoiceNumber Me("choice" & x).Value = 'Do what you want here Next
|
|
|