Application.OpenAccessProject (Access)

You can use the OpenAccessProject method to open an existing Microsoft Access project (.adp) as the current Access project in the Access window.

The OpenAccessProject method enables you to open an existing project from within Access or another application through Automation, formally called OLE Automation. For example, you can use the OpenAccessProject method from Microsoft Excel to open the Northwind.adp sample database in the Access window. After you have created an instance of Access from another application, you must also create a new Access project or specify a particular Access project to open. This Access project opens in the Access window. If you have already opened a project and wish to open another project in the Access window, you can use the CloseCurrentDatabase method to close the first Access project before opening another.

OpenAccessProject (filepath, Exclusive)


Dim strfilepath As String: strfilepath = 
OpenAccessProject filepath:=strfilepath

Arguments

The following argument is required

filepath (String) - The name of the existing Access project, including the path name and the file name extension.

Optional arguments

The following argument is optional

Exclusive (Boolean) - Specifies whether you want to open the Access project in exclusive mode. The default value is False, which specifies that the Access project should be opened in shared mode.