Hi folks,
I did look under FAQs, honest, but could not see anything quite like my question:
I have a form with an option group of five buttons which select different reports for various records depending on which option button is selected - so far so good.
I now want to grey out certain buttons when the choice is not relevant for the new record selected. I have tried code like:
If Me!data = "xx" Then
Me!Option3.Enabled = False
etc,..etc...
Else
Me!Option3.Enabled = True
etc,...etc...
End If
This works, but does not automatically "update" the option button group, i.e. the selected disabled button(s) will appear correctly greyed out but only when you click on another button in the group.
Is there a way to make the option button group choices automatically track as the user selects different records on the main form?
I did look under FAQs, honest, but could not see anything quite like my question:
I have a form with an option group of five buttons which select different reports for various records depending on which option button is selected - so far so good.
I now want to grey out certain buttons when the choice is not relevant for the new record selected. I have tried code like:
If Me!data = "xx" Then
Me!Option3.Enabled = False
etc,..etc...
Else
Me!Option3.Enabled = True
etc,...etc...
End If
This works, but does not automatically "update" the option button group, i.e. the selected disabled button(s) will appear correctly greyed out but only when you click on another button in the group.
Is there a way to make the option button group choices automatically track as the user selects different records on the main form?