Name buttons in an option group from a table dynamically

G

Guest

Hi

I have a form with a command button "Print Report" which when activated
displays an option group with a button individually named for each client
(the option group was created using the Option Group Wizard). These buttons,
when selected, print reports for each specific client.

My problem is that the records in the "Clients" table keep on changing, with
new clients being added and old ones removed from the table.

Is there a way to code the command button so that t will dynamically create
and name the option buttons in the option group based on distinct records
from the "Clients" field in the Access table and then, to size the option
group frame according to the number of buttons in the frame?

Thanks in advance for your help
 
G

Guest

Using the option group is not a very good way to do that. I recommend
replacing it with a combo box with a row source that will list all your
clients.
 
G

Guest

OK thanks - I'll try that.
Klatuu said:
Using the option group is not a very good way to do that. I recommend
replacing it with a combo box with a row source that will list all your
clients.
 

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