Class CurrentProject (Access VBA)

The CurrentProject object refers to the project for the current Microsoft Access project (.adp) or Access database.

Class Application gives access to class CurrentProject.

Methods

AddSharedImage - Imports the specified image into the database and adds it to the SharedResources collection.

CloseConnection - You can use the CloseConnection method to close the current connection between the CurrentProject object in a Microsoft Access project (.adp) or Access database and the database specified in the project's base connection string.

OpenConnection - You can use the OpenConnection method to open an ADO connection to an existing Microsoft Access project (.adp) or Access database as the current Access project or database in the Microsoft Access window.

UpdateDependencyInfo - Updates the dependency information for the database.

Properties

AccessConnection you can use the AccessConnection property to return a reference to the current Microsoft ActiveX Data Objects (ADO) Connection object and its related properties.

AllForms you can use the AllForms property to reference the AllForms collection and its related properties.

AllMacros you can use the AllMacros property to reference the AllMacros collection and its related properties.

AllModules you can use the AllModules property to reference the AllModules collection and its related properties.

AllReports you can use the AllReports property to reference the AllReports collection and its related properties.

BaseConnectionString you can use the BaseConnectionString property to return the base connection string for the specified object.

Connection you can use the Connection property to return a reference to the current ActiveX Data Objects (ADO) Connection object and its related properties.

FileFormat returns an AcFileFormat constant indicating the Microsoft Access version format of the specified project.

FullName sets or returns the full path (including the file name) of a specific object.

ImportExportSpecifications returns an ImportExportSpecifications collection that represents the collection of saved import or export operations for the specified object.

IsConnected you can use the IsConnected property to determine if the CurrentProject object is currently connected.

IsSQLBackend

IsTrusted gets whether macros and Visual Basic for Applications (VBA) code have been enabled in the current project.

IsWeb gets whether the database is a web database.

Name you can use the Name property to determine the string expression that identifies the name of an object.

Path you can use the Path property to determine the location where data is stored for a Microsoft Access project (.adp) or Microsoft Access database.

ProjectType you can use the ProjectType property to determine the type of project that is currently open.

Properties returns a reference to a CurrentProject object's AccessObjectProperties collection.

RemovePersonalInformation returns or sets a Boolean indicating whether personal information about the user is stored in the specified project. True if personal information is removed.

Resources gets the SharedResources collection for the specified object.

WebSite gets the Uniform Resource Locator (URL) of the website to which the database has been published.

AccessObjectProperties - The AccessObjectProperties collection contains all of the custom AccessObjectProperty objects of a specific instance of an object. These AccessObjectProperty objects (which are often just called properties) uniquely characterize that instance of the object.

AllForms - The AllForms collection contains an AccessObject object for each form in the CurrentProject or CodeProject object.

AllMacros - The AllMacros collection contains an AccessObject for each macro in the CurrentProject or CodeProject object.

AllModules - The AllModules collection contains an AccessObject of each module in the CurrentProject or CodeProject object.

AllReports - The AllReports collection contains an AccessObject for each report in the CurrentProject or CodeProject object.

ImportExportSpecifications - Represents the collection of available ImportExportSpecification objects.

SharedResources - Represents the collection of shared resources in the database.