ACC2000: Form and Report Modules Are Public by Default (210205)
The information in this article applies to:
This article was previously published under Q210205 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
SUMMARY
Microsoft Access has set the scope of procedures in form and report modules
to be as consistent with object-oriented programming as possible. Variables
in Microsoft Access class modules can be declared as Public so as to be available to other objects in a database. You can use a pre-declared
identifier to refer to a form without the form having to be loaded into
the Forms collection. This article shows you examples of how to use
pre-declared identifiers to refer to objects in a class module.
REFERENCESFor more information about scope, click Microsoft Visual Basic Help on the
Help menu, type understanding scope and visibility in the Office Assistant or
the Answer Wizard, and then click Search to view the topics
returned.
For more information about class modules, click Microsoft Visual Basic Help on the
Help menu, type module and class module commands (insert menu) in the Office Assistant or
the Answer Wizard, and then click Search to view the topics
returned.
Modification Type: | Major | Last Reviewed: | 6/23/2005 |
---|
Keywords: | kbhowto kbinfo kbProgramming KB210205 |
---|
|