I have 2 option groups on a form. The first option group allows a user to pick from a list of reports and the second option group lets them choose between a detail or a summary report. However, there are 3 reports that have no corresponding summary reports so I'd like to turn off the summary option. I put this code on the "Click" event
Me.RptSelect.Controls(1).Enabled = True or
Me.RptSelect.Controls(1).Enabled = False
this works fine as long as control #1 isn't already selected. I tried moving the focus to Control 2 whenever an option is selected but I couldn't get the code right.
I know I could take the options out of the group and that would work but there must be a way to get this to work without doing that.
Help would be appreciated.
Me.RptSelect.Controls(1).Enabled = True or
Me.RptSelect.Controls(1).Enabled = False
this works fine as long as control #1 isn't already selected. I tried moving the focus to Control 2 whenever an option is selected but I couldn't get the code right.
I know I could take the options out of the group and that would work but there must be a way to get this to work without doing that.
Help would be appreciated.
Last edited: