Code Window in VBA Environment MS Access

Code Window in VBA Environment

This MSAccess tutorial explains the Code window in the VBA environment in Access (with screenshots and step-by-step instructions).

Code Window

The Microsoft Visual Basic window displays your VBA environment:

image 125
Code Window in VBA Environment

Next, let’s analyze the Code window in the VBA environment.

image 126
Code Window in VBA Environment MS Access 4

The Code window is usually found to the right of the Project Explorer in Access 2010. It displays the VBA code for the object currently highlighted in the Project Explorer. In the example above, it is displaying the VBA code for the module called modGeneral.

If the Code window is not visible when you open the Microsoft Visual Basic window, you can make it visible by selecting Code under the View menu.

image 127
Code Window in VBA Environment MS Access 5