J
Jim Franklin
Hi,
I have a form & subform which contains a command button on the subform.
After running some code, the command button is supposed to return the focus
to a control on the main form using either the .setfocus method or
docmd.gotocontrol ( I have tried both.)
It works fine when you click on the button. However, if you invoke the
button using the keyboard ALT+A (button caption = "&Add") the rest of the
code works but the button does not release the focus to the mainform
control.
Any ideas what I am doing wrong?
Thanks for any help,
Jim F.
I have a form & subform which contains a command button on the subform.
After running some code, the command button is supposed to return the focus
to a control on the main form using either the .setfocus method or
docmd.gotocontrol ( I have tried both.)
It works fine when you click on the button. However, if you invoke the
button using the keyboard ALT+A (button caption = "&Add") the rest of the
code works but the button does not release the focus to the mainform
control.
Any ideas what I am doing wrong?
Thanks for any help,
Jim F.