Hi
I've change my db to a accdb file and in my Excel (xlsm) file I am trying to use the open database (DAO method)
I've changed the reference to:
Microsoft Office 15.0 Access database engine
It was working fine until I added a password to the database
Here is the code:
This code works fine when I had the Microsoft DAO 3.6 Object Library
Is there something simple I'm missing with this?
Thanks
I've change my db to a accdb file and in my Excel (xlsm) file I am trying to use the open database (DAO method)
I've changed the reference to:
Microsoft Office 15.0 Access database engine
It was working fine until I added a password to the database
Here is the code:
Code:
Set db = OpenDatabase(strDBPath, False, False, "MS Access;PWD=" & strPassword)
This code works fine when I had the Microsoft DAO 3.6 Object Library
Is there something simple I'm missing with this?
Thanks