G.4. The CurrentProject Object

The CurrentProject object represents the Access project for the database or project that is currently open in Access. The Access project consists of the non-data items such as Forms, Reports, Macros, and Modules. The CurrentProject object has several collections and a number of properties you can use within your application. Here are descriptions of those properties:

PropertyData TypeDescription
AccessConnectionConnectionReturns a reference to the currently active ADO Connection object.
AllFormsAllForms collectionReturns a reference to the AllForms collection and its associated properties.
AllMacrosAllMacros collectionReturns a reference to the AllMacros collection and its associated properties.
AllModulesAllModules collectionReturns a reference to the AllModules collection and its associated properties.
AllReportsAllReports collectionReturns a reference to the AllReports collection and its associated properties.
ApplicationApplication objectReturns a reference to the current Application object.
BaseConnectionStringStringReturns the base Connection String for the CurrentProjector CodeProject object.
ConnectionConnection objectReturns the currently active ADO Connection object.
FileFormatAcFileFormat EnumReturns a constant representing the Microsoft Access version of the specified project.
FullNameStringReturns the full path and name for the CurrentProject object.
ImportExportSpecificationsImportExportSpecifications collectionReturns the collection of import ...

Get Access™ 2007 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.