Programmatically create an option group button

G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top