By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,471 Members | 2,264 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,471 IT Pros & Developers. It's quick & easy.

Ampersand in command button caption not working

Seth Schrock
Expert 2.5K+
P: 2,931
I read online that placing an ampersand in the caption of a control will make that control accessible by pressing Alt + the character being underlined. I'm trying to do that, but it isn't working. I have two buttons with the following captions, New Task and Delete Task. I have the ampersand placed at the beginning of each caption so I have New Task and Delete Task. However, pressing Alt + N or Alt + D doesn't do anything. For testing purposes, I have the On_Click event produce a message box that says "It worked", but it doesn't come up. Is there something else that I need to configure to get it to work? I'm using Access 2010.

I'm working with a command button.
Aug 3 '12 #1

✓ answered by PGAC

Hi Seth,

It seems when the form is first opened the hotkey is OK but once the focus goes into a tab the hotkey functionality 'ceases to exist' or at least that is what I have found. I suppose it depends on the form.

Anyhow, with earlier versions of Access 2010, hotkeys and tabs just don't mix.

Share this Question
Share on Google+
3 Replies


P: 7
Do you use tabs on the form with the command button? I heard and know first hand that in earlier versions of 2010, tabs seem to interfere with hotkeys (interfere meaning non-functional).
Aug 4 '12 #2

Seth Schrock
Expert 2.5K+
P: 2,931
Very interesting. I actually do have tabs on my form. The button is actually in the tab control. Does that matter? Does it work if button is off the tab or does just having the tab break it?
Aug 4 '12 #3

P: 7
Hi Seth,

It seems when the form is first opened the hotkey is OK but once the focus goes into a tab the hotkey functionality 'ceases to exist' or at least that is what I have found. I suppose it depends on the form.

Anyhow, with earlier versions of Access 2010, hotkeys and tabs just don't mix.
Aug 4 '12 #4

Post your reply

Sign in to post your reply or Sign up for a free account.