G
Guest
I have a main form with one subform. All field controls on the main form and
the subform are disabled initially. The main form has several buttons, one
of which has code enabling certain subform fields for editing. When the user
is done editing subform fields they must click on another main form button
which disables the subform controls just edited. My problem is at this point.
I believe that clicking on a button would normally change the focus to that
button. However, if the focus is on a subform control and the user clicks on
a main form button, then they get a message saying "can't disable a control
that has the focus". So, Access still thinks the subform has the focus, even
though the user has clicked on a main form button.
How do I work around this little problem? I've tried several things to no
avail. It seems that once the subform has the focus, I can't get the focus
to go back to the main form so that I can disable the subform controls.
the subform are disabled initially. The main form has several buttons, one
of which has code enabling certain subform fields for editing. When the user
is done editing subform fields they must click on another main form button
which disables the subform controls just edited. My problem is at this point.
I believe that clicking on a button would normally change the focus to that
button. However, if the focus is on a subform control and the user clicks on
a main form button, then they get a message saying "can't disable a control
that has the focus". So, Access still thinks the subform has the focus, even
though the user has clicked on a main form button.
How do I work around this little problem? I've tried several things to no
avail. It seems that once the subform has the focus, I can't get the focus
to go back to the main form so that I can disable the subform controls.