About running Visual Basic code

About running Visual Basic code

You run Visual Basic code in Microsoft Access by running a Sub procedure or Function procedure. Procedures contain a series of statements and methods that perform an operation or calculate a value.

Procedures are stored in units called modules. However, you don't run a module; rather, you call the procedures from expressions, other procedures, or macros. Event procedures in form or report modules also run in response to user actions.

Here are the ways to run Visual Basic code in Microsoft Access: