Open the Macro window or the Visual Basic Editor
- 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 on the toolbar.
- 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 Microsoft Visual Basic Editor.
Note To view all the code behind a form or report, click Code on the View menu.