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:
Property | Data Type | Description |
---|---|---|
AccessConnection | Connection | Returns a reference to the currently active ADO Connection object. |
AllForms | AllForms collection | Returns a reference to the AllForms collection and its associated properties. |
AllMacros | AllMacros collection | Returns a reference to the AllMacros collection and its associated properties. |
AllModules | AllModules collection | Returns a reference to the AllModules collection and its associated properties. |
AllReports | AllReports collection | Returns a reference to the AllReports collection and its associated properties. |
Application | Application object | Returns a reference to the current Application object. |
BaseConnectionString | String | Returns the base Connection String for the CurrentProjector CodeProject object. |
Connection | Connection object | Returns the currently active ADO Connection object. |
FileFormat | AcFileFormat Enum | Returns a constant representing the Microsoft Access version of the specified project. |
FullName | String | Returns the full path and name for the CurrentProject object. |
ImportExportSpecifications | ImportExportSpecifications collection | Returns 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.