Opening an Access db within vba

J

Jim Franklin

Hi,

Can anyone tell me the best way of opening an Access db from within the vba
code of another Access db? The db I want to open is protected by user-level
security with a .mdw file.

Basically I need to circumvent the usual Logon Name / Password process when
opening a workgroup-protected .mdb and replace it with a single form,
non-protected Access file which opens the new db with correct user name and
password parameters. At the moment I am doing this by executing a Shell
command within the vba, but I wonder if there is a better way to do this.

If there isn't, can anyone tell me if there is a way of knowing if the Shell
command executed successfully?

Many thanks,

Jim
 
D

Daniel Pineault

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top