Working with the Modules Collection
The Modules collection contains a Module object representing each module that is currently opened for editing. The Module object might represent a standard or class module that is currently open in the Microsoft® Visual Basic® Editor or a module associated with a form or report that is open in Design view. You can use the methods and properties of a Module object to get information about the code contained in the module or to insert procedures or lines of code. The objects in this collection are typically used by code running in an add-in or wizard.
For more information about the Modules collection and Module objects, search the Microsoft® Access Visual Basic® Reference Help index for "Modules collection" or "Module object."
See Also
Built-in Access Functions and Methods | Creating, Opening, and Closing an Access Application | The CurrentData and CurrentProject Objects | Working with the Screen Object | Working with the DoCmd Object | Working with the References Collection