keyboard shortcut not woking with MDE

E

Eric Blitzer

I assign caption to my main command buttons on my initial startup menu like
&A - Client
&B - Reports
The appear without the & but underlined.

Normally by hitting alt A or alt B the button is launched. When I make the
MDE the keybourd shortcut no longer works. Any help would be appreciated.

Thanks
 
A

Allen Browne

Eric, the keyboard shortcuts should work as you expect in an MDE.

Are these in the Caption of the buttons?
In the Caption of a label attached to the buttons?

Does the button get focus when you type the shortcut, even if the event
procedure does not execute?

Is there anything else that could prevent it getting focus, or prevent the
procedure executing, e.g. another procedure that must execute first and
cannot complete, or some issue that is being masked by an On Error Resume
Next or suppression of error messages?

Do other things work in this database?

What version of Access? And what service patch?
 
E

Eric Blitzer

Allen,

I had a setfocus command on loading the form which appears to be the cause.

Thanks for your fast response
 
Top