O'Reilly logo

Microsoft® Office Access™ 2007 Plain & Simple by Curtis D. Frye

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Launching a Macro from a Button

You and your colleagues can run any macro any time you want by right-clicking it and clicking the Run option, but there is a better way to let your colleagues run a macro whenever they want. To do that, you can create a command button on a form and tell Access to run the macro whenever someone clicks the button. The Main Switchboard form that appears when you open the Northwind sample database has several such buttons that let you print sales reports or open the main database window.

Assign a Macro to a Button

  1. Open a form in Design view.

  2. If necessary, click the Design tab.

  3. If necessary, click the Control Wizards button. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required