What Is Scope?

Scope refers to the range, reach, extent, or sphere of availability of a variable, constant, or procedure to other procedures. A variable, constant, or procedure can be declared public or private. If they are declared with Public scope, they are available to all procedures in all modules in all applications unless Option Private Module is in effect; in which case, they are available only within the project in which they reside. Anything that is declared with Private scope is available only within the module in which it was declared.

NOTE

Any variable declared as private in the declarations section of the module is available to any procedure in the module. If a variable is not in the declaration section (in other words, it is declared ...

Get Access 2002 Programming by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.