


The macro contains actions that perform the task you chose in the wizard. The wizard creates the command button and embeds a macro in the button's On Click property. In the design grid, click where you want the command button to be inserted.įollow the directions in the wizard. On the Design tab, in the Controls group, click Button. On the Design tab, in the Controls group, ensure that Use Control Wizards is selected. Right-click the form in the Navigation Pane, and then click Design view on the shortcut menu.

What do you want to do?Īdd a command button to a form by using a wizardĬreate a button by dragging a macro to a formĬreate a command button without using a wizardīy using the Command Button Wizard, you can quickly create command buttons that do a variety of tasks, such as closing the form, opening a report, finding a record, or running a macro. This makes it possible to copy the command button to other forms without losing the functionality of the button. You can also embed a macro directly into the On Click property of the command button. To make a command button perform an action, you write a macro or event procedure and attach it to the command button's On Click property. For example, you can create a command button that opens another form. You use a command button on an Access form to start an action or a set of actions. Access for Microsoft 365 Access 2021 Access 2019 Access 2016 Access 2013 Access 2010 Access 2007 More.
