• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 206
  • Last Modified:

Call another access database from inside an access database

When inside an access database, I would like call another access database and close the current one.

How can I do that please?

0
snyperj
Asked:
snyperj
1 Solution
 
Rey Obrero (Capricorn1)Commented:


sub openotherdb()
dim acObj as object
set acObj=createObject("access.application")
     acObj=opencurrentdatabase(<path to the other db>)
     acObj.usercontrol=true
docmd.quit

end sub
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now