Command button behaviour

  • Thread starter Thread starter Jim Franklin
  • Start date Start date
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 just tried it in Access XP and got the same thing you did. Unless someone has some more
information on this, it sounds like a bug to me.
 
Back
Top