O'Reilly logo

Access™ 2007 VBA Programmer's Reference by Armen Stein, Geoffrey Griffith, Rob Cooper, Teresa Hennig

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required