Open the Macro or the Visual Basic Editor Code window from a form or report
- In form or report Design view, do one of the following:
- Click the Build button 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.
- Click Macro Builder to open the Macro window, or click Code Builder to open the Visual Basic Editor Code window.
Note If you want to be able to view all the code behind a form or report, click Code on the View menu.