Connection error when using CurrentProject.Connection or CurrentDB.Connection in Access
Article
Applies to:
Access 2016, Access 2013, Access 2010, Microsoft Office Access 2007
Original KB number: 2459087
Symptoms
When you open your database in Access, you receive the following error message:
Method 'Connection' of object '_Current Project' failed.
This failure occurs when the VBA Application.CurrentProject.Connection or Application.CurrentDB.Connection is called.
Cause
The Access Database Engine/Access Connectivity Engine (ACE) is included with a number of products other than Microsoft Access such as Microsoft Visio and Microsoft Project. If you install a version of ACE that's different than that of Access, the ACEOLEDB.DLL path in the registry may not point to the corresponding ACE version.
Resolution
You should be able to resolve this issue by running a repair of the Office or Access installation.
Alternatively, you can modify the registry key changing the dll path to match that of your Access version.