Option Group - programatically setting the options

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi Guys,

I have a main form that has a number of tabs. One of the tabs has an Option
Group with 3 options. Based upon a field in a table in the database, I
dynamically display the tabs. This works fine and is done via the "on
Current" event of the main form.

Currently the user must choose which of the 3 options they require. I want
to programatically automatically set the option for them based upon the
setting in the same field as mentioned above.

Any ideas wouldbe appreciated.

Thanks
Regards
Greg
 
An option group can be bound to a field in your table. Each option has a
numeric value that matches the stored value in your table. If your field is
not one of three different numbers then you should provide us with some
additional information about what you are actually storing as well as the
name of the option group and the values of the option buttons.
 
Hi Duane

I just managed to figure it out!

I simply added the following to my code and it works great!

Me!grpFilterOptions = "2"

Thanks for your prompt reply.

Regards
Greg
 

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

Back
Top