469,073 Members | 1,808 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,073 developers. It's quick & easy.

Ampersand in command button caption not working

Seth Schrock
2,957 Expert 2GB
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.

3 3207
PGAC
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
2,957 Expert 2GB
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
PGAC
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.

Similar topics

2 posts views Thread by Michael Mak | last post: by
1 post views Thread by Nick | last post: by
9 posts views Thread by =?Utf-8?B?dHBhcmtzNjk=?= | last post: by
1 post views Thread by CARIGAR | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.