How to assign keyboard shortcut keys to a button in a form?

T

tsraj

Please advise how to assign keyboard shortcut keys to a command button in a
form?
 
R

Roger Carlson

Well, the easiest way is to add an ampersand character (&) in front of the
letter in the button caption you want to use as a shortcut. For instance,
if you have a button to close your form, and you want the Alt+C shortcut to
close the form, your command button caption would be: &Close

--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L
 
T

tsraj

Thank you very much. You were so helpful.

Roger Carlson said:
Well, the easiest way is to add an ampersand character (&) in front of the
letter in the button caption you want to use as a shortcut. For instance,
if you have a button to close your form, and you want the Alt+C shortcut to
close the form, your command button caption would be: &Close

--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L
 

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