Programmatically create an option group button

K

Ken

Is it possible to create an option group button? I would like to create
option group buttons for each catagory in a table on "Open Form". I can move
them, change their characteristics, but I don't see how to create one.
Thanks in advance.
 
A

Allen Browne

You can create controls only in design view.

If the form is open in design view, you can use CreateControl to create a
control of type acOptionButton that has the name of your option group as its
parent.

Then add the attached label for the option button with another
CreateControl, this time with the Option Button as the parent.
 
Top