I’ve got a form with a subform. On the subform the are a number of buttons which can be clicked to open other popup forms.
My problem is this:
If I click a button on the subform, then close the popup, the button retains the focus.
I’ve got some code in the On Current event for the parent form which changes the state of the form and disables some buttons.
I get the error – cannot disable the button when it has the focus. I’ve tried setting the focus back to the main form (and then again on a control on the main form) but I still get the error. I’ve also noticed that even if I manually move around the main form, the moment I try to move to another record via the navigation buttons I still get the error. How can the button on the subform still have focus?