Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Close first Access db from second Access db

Status
Not open for further replies.

Webkins

Programmer
Dec 11, 2008
118
US
I open an Access db, call it db1
Using VBA from db1 I open a second Access db, call it db2.
This is working fine.

The issue I am having is to close db1 using VBA in db2.
Once db2 is open and has focus the VBA code in db1 quits executing and therefore cannot reach my DoCmd.Quit line of code.

Access version = Microsoft 365 ProPlus
Windows version = 10
Hope this sounds familiar to someone and can please provide me with a solution.
Thank you in advance for your assistance.


 
Good morning

Is anyone familiar on how to do this task?

Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top