Command Button Control
Applies to: Access 2013 | Access 2016
A command button on a form can start an action or a set of actions. For example, you could create a command button that opens another form. To make a command button do something, you write a macro or event procedure and attach it to the button's OnClick property.
Remarks
You can display text on a command button by setting its Caption property, or you can display a picture by setting its Picture property.
Tip
You can create over 30 different types of command buttons with the Command Button Wizard. When you use the Command Button Wizard, Microsoft Access creates the button and the event procedure for you.
See also
- Access for developers forum
- Access help on support.office.com
- Access help on answers.microsoft.com
- Search for specific Access error codes on Bing
- Access forums on UtterAccess
- Access wiki on UtterAccess
- Access developer and VBA programming help center (FMS)
- Access posts on StackOverflow
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for