• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 209
  • 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

Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

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