Option group

D

DEX

How do you reference an option button in an option group
on a form. I'd like to write a select case statement to
have actions performed if a certain button is selected.

thanks
 
J

Jeff Boyce

The option group's value is the value of the option "button" selected.
Check the option buttons for the values (typically 1, 2, ...).

In your case statement, use something like (actual syntax may vary):

Select Case optMyOptionGroup
Case 1 'the option button with value = 1 was selected
blah, blah, blah
Case 2 ' option button value=2
...

Good luck

Jeff Boyce
<Access MVP>
 

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