troubleshoot option group

A

angie

i have an option group with two check boxes. if option 1 is checked nothing
needs to be done, if option 2 is checked i want to open another form and
minimize the current form. i have created an openform macro but it doesn't
work no matter where i put it!

could you help me?
 
F

fredg

i have an option group with two check boxes. if option 1 is checked nothing
needs to be done, if option 2 is checked i want to open another form and
minimize the current form. i have created an openform macro but it doesn't
work no matter where i put it!

could you help me?

The usual values of the options in an option group are 1, 2, 3, etc.
Why check boxes as options instead of the usual radio buttons?

The OptionGroup takes it's value from whichever button (or check box)
has been clicked. So, if there are just the 2 choices, you could code
the OptionGroup's AfterUpdate event:

If Me.OptionGroupName = 2 then
DoCmd.Minimize
DoCmd.OpenForm "FormName"

End If

This will open the other form, and minimize this form.
 

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