A family of Microsoft relational database management systems designed for ease of use.
Have you set a reference in Tools > References to the Microsoft Office 16.0 Access database engine Object Library?
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
When I try to open an Access database, VBA code that worked in previous versions of Excel stops with
Run-time error '-2147221164 (800040154)':
Class not registered
What references do I need? Is this the right method?CODE:
Dim db As Database
Set db = OpenDatabase(sPath & "\MyDB.mdb", False, _
False, "MS Access;PWD=" & sPW)
A family of Microsoft relational database management systems designed for ease of use.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Answer accepted by question author
Have you set a reference in Tools > References to the Microsoft Office 16.0 Access database engine Object Library?
That worked!
Thank you, HansV