Command button behaviour

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.
 
W

Wayne Morgan

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top