Solved Open External Access Database (1 Viewer)

RevJeff

Registered User.
Local time
Today, 10:55
Joined
Sep 18, 2002
Messages
125
Is there a way of opening a second database using VBA from within the first database?

Thanks
 

June7

AWF VIP
Local time
Today, 06:55
Joined
Mar 9, 2014
Messages
5,470
Yes. Do you want to open it and let user have control or do you want code to do something with the db then close it?
 

RevJeff

Registered User.
Local time
Today, 10:55
Joined
Sep 18, 2002
Messages
125
Yes. Do you want to open it and let user have control or do you want code to do something with the db then close it?
Just open it and let the user have control.
 

Isaac

Lifelong Learner
Local time
Today, 07:55
Joined
Mar 14, 2017
Messages
8,777
Also to open the database using a new Access instance:
Code:
dim AccessApp as Access.Application
set AccessApp = createobject("Access.Application")
AccessApp.OpenCurrentDatabase "path to access database file"
 

Users who are viewing this thread

Top Bottom