Open the Macro window or the Visual Basic Editor

Microsoft Office Access 2003

Show All Show All

Open the Macro window or the Visual Basic Editor

  1. In form or report Design view, do one of the following:

    Double-click the form selector or report selector to open the property sheet for the form or report.

    Double-click the section selector to open the property sheet for the section.

    Make sure a control is selected, and then click Properties Button image on the toolbar.

  2. Click the Build button Button image next to the appropriate event property. For example, if you want to create a macro or event procedure that will run when you click a command button, click the Build button next to the command button's OnClick event property.
  3. Click Macro Builder to open the Macro window, or click Code Builder to open the Microsoft Visual Basic Editor.

Note  To view all the code behind a form or report, click Code on the View menu.