3 Attaching VBA when an application opens

The following are simple steps to attach code to an application so that this code executes as soon as the application is opened. This mechanism is particularly important for applications that need to gain control as early as possible to customize settings.

 3.1 Create a new Access application
 3.2 Write a simple subroutine
 3.3 Create a macro
 3.4 Testing the macro/subroutine