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.

PropertyData TypeDescription
AccessConnectionConnectionUsed to return a reference to the currently active ADO Connection object
AllDataAccessPagesAllDataAccessPages collectionUsed to return a reference to the AllDataAccessPages collection and its associated properties
AllFormsAllForms collectionUsed to return a reference to the AllForms collection and its associated properties
AllMacrosAllMacros collectionUsed to return a reference to the AllMacros collection and its associated properties
AllModulesAllModules collectionUsed to return a reference to the AllModules collection and its associated properties
AllReportsAllReports collectionUsed to return a reference to the AllReports collection and its associated properties
ApplicationApplication objectUsed to return a reference to the current Application object
BaseConnectionStringStringUsed to return the base Connection String for the CurrentProject or CodeProject object
ConnectionConnection objectUsed to return the currently active ADO Connection object
FileFormatacFileFormat (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.