event procedures or modules that perform equivalent actions by using Visual Basic code. You can convert macros on a form or report, or you can convert global macros that aren't attached to a specific form or report.
Convert macros on a form or report
- Open the form or report in Design view.
- On the Tools menu, point to Macro, and then click Convert Form's Macros To Visual Basic or Convert Report's Macros To Visual Basic.
Convert global macros to Visual Basic
- In the Database window, click Macros under Objects.
- Click the name of the macro you want to convert.
- On the File menu, click Save As.
- In the Save As dialog box, click Module in the lower text box and click OK.
- In the Convert Macro dialog box, select the options you want, and click Convert.