FancyPrairie
Programmer
I want to use Automation to open a secured database. Note that the secured database does not use the same workgroup my application is running in. For example, db1.mdb (uses System.mdw) trys to open a form in db2.mdb (which uses a different mdw file).
Here's some of my code:
Dim appAccess As Access.application
Set appAccess = CreateObject("Access.Application"
appAccess.OpenCurrentDatabase "db2.mdb"
appAccess.Docmd.OpenForm "Myform"
The error I get via the OpenCurrentDatabase is:
----------------------------------
Error Number 7866
Microsoft Access can't open the database because it is missing or open exclusively by another user.
----------------------------------
In my case, the database is not missing nor opened by another user.
I don't care if I have to log in or not, I just want it to work.
By the way, I'm not using automation to open a form, I'm actually trying to retrieve the databases references.
Here's some of my code:
Dim appAccess As Access.application
Set appAccess = CreateObject("Access.Application"
appAccess.OpenCurrentDatabase "db2.mdb"
appAccess.Docmd.OpenForm "Myform"
The error I get via the OpenCurrentDatabase is:
----------------------------------
Error Number 7866
Microsoft Access can't open the database because it is missing or open exclusively by another user.
----------------------------------
In my case, the database is not missing nor opened by another user.
I don't care if I have to log in or not, I just want it to work.
By the way, I'm not using automation to open a form, I'm actually trying to retrieve the databases references.