E.8. The CodeProject Object
The CodeProject object allows you to manipulate the set of all code modules (including both standard and class modules) in the code database of an Access Project (adp) or Access Database (mdb). The CodeProject object has several collections and a number of properties you can use within your application.
E.8.1. Properties of the CodeProject Object
The various properties of the CodeProject object are listed in the following table.
Property | Data Type | Description |
---|---|---|
AccessConnection | Connection | Used to return a reference to the currently active ADO Connection object |
AllDataAccessPages | AllDataAccessPages collection | Used to return a reference to the AllDataAccessPages collection and its associated properties |
AllForms | AllForms collection | Used to return a reference to the AllForms collection and its associated properties |
AllMacros | AllMacros collection | Used to return a reference to the AllMacros collection and its associated properties |
AllModules | AllModules collection | Used to return a reference to the AllModules collection and its associated properties |
AllReports | AllReports collection | Used to return a reference to the AllReports collection and its associated properties |
Application | Application object | Used to return a reference to the current Application object |
BaseConnectionString | String | Used to return the base Connection String for the CurrentProject or CodeProject object |
Connection | Connection object | Used to return the currently active ADO Connection object |
FileFormat | acFileFormat (acFileFormatAccess2, ... |
Get Access 2003 VBA Programmer's Reference 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.