useful tip: ALT + shortcuts

Chrisopia

Registered User.
Local time
Yesterday, 21:48
Joined
Jul 18, 2008
Messages
279
I discovered this from a template I downloaded for a completely separate reason.

Basically, in the caption of the button, place an ampersand ( & ) in front of the letter you want to short cut on your form,

for example: a caption of &Next, will display a button with the word Next, but the N will be underlined, meaning if you pressed ALT + 'N' it will perform the actions of the buttons.

It works with any letter of the word, N&ext will make the 'e' a short cut letter.

It's proved to be a very useful short cut tool, I hope it helps you all too.

Please let me know if you find any disadvantages to this tool.
 
This why we always say you should make reference to the Access help files at all times. ;)

Here's an excerpt from the Help files regarding the Caption property of a button (for example):

You can use the Caption property to assign an access key to a label or command button. In the caption, include an ampersand (&) immediately preceding the character you want to use as an access key. The character will be underlined. You can press ALT plus the underlined character to move the focus to that control on a form.
Include two ampersands (&&) in the setting for a caption if you want to display an ampersand itself in the caption text. For example, to display "Save & Exit", you should type Save && Exit in the Caption property box.
 
I accidentally discoved this long ago when I used an ampersand in a caption and it disappeared. I knew what was going on when I saw the underline in the caption and realised it was the same as the underline that appears in Windows.
 

Users who are viewing this thread

Back
Top Bottom