CurrentProject Members (Access)

GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

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

Methods

Name

Description

AddSharedImage

Imports the 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

Name

Description

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. Read-only Connection.

AllForms

You can use the AllForms property to reference the AllForms collection and its related properties. Read-only AllForms object.

AllMacros

You can use the AllMacros property to reference the AllMacros collection and its related properties. Read-only AllMacros object.

AllModules

You can use the AllModules property to reference the AllModules collection and its related properties. Read-only AllModules object.

AllReports

You can use the AllReports property to reference the AllReports collection and its related properties. Read-only AllReports object.

Application

You can use the Application property to access the active Microsoft Access Application object and its related properties. Read-only Application object.

BaseConnectionString

You can use the BaseConnectionString property to return the base connection string for the specified object. Read-only String.

Connection

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

FileFormat

Returns an AcFileFormat constant indicating the Microsoft Access version format of the specified project. Read-only.

FullName

Sets or returns the full path (including file name) of a specific object. Read-only String.

ImportExportSpecifications

Returns a ImportExportSpecifications collection that represents the collection of saved import or export operations for the specified object. Read-only.

IsConnected

You can use the IsConnected property to determine if the CurrentProject object is currently connected. Read-only Boolean.

IsTrusted

Gets whether or not macros and Visual Basic for Applications (VBA) code have been enabled in the current project. Read-only Boolean.

IsWeb

Gets whether the database is a Web database. Read-only Boolean.

Name

You can use the Name property to determine the string expression that identifies the name of an object. Read-only String.

Parent

Returns the parent object for the specified object. Read-only.

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. Read-only String.

ProjectType

You can use the ProjectType property to determine the type of project that is currently open. Read-only AcProjectType.

Properties

Returns a reference to a CurrentProject object's AccessObjectProperties collection. Read-only.

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

Resources

Gets the SharedResources collection for the specified object. Read-only SharedResources.

WebSite

Gets the Uniform Resource Locator (URL) of the Web site to which the database has been published. Read-only String.

IsSQLBackend

Returns true if the current project was created in Access 2013 and onwards and false if the current project was created prior to Access 2013 . Read-only Boolean Introduced in Office 2016.