Microsoft Access can automatically convert macros to Visual Basic 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