Opening another Access instance

T

Terry

I need to open another instance of Access with a specific database, without
closing the currently open database. What is the best bit of Vba to use?

Regards
 
G

Guest

One way is the SHELL command. You have to be careful with the spaces in
your file paths.

Here's an example that works:

Shell "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" & " " &
"C:\Docume~1\Steve.DOMAIN\MyDocu~1\DATA\Sample.mdb"

Steve
 
T

Terry

Thanks for the replies,

I took a look at the Automation Whitepaper and found something in the help
files that with a little bit of bending did the trick.

Regards
 

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