4.1 Declaring a variable

Dim counter As Integer  
    

This line declares a variable. This variable has a name counter, and a type of Integer. Because this variable is declared in the General context, it is accessible by every line of VBA code in this particular Access application.