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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open Spreadsheet from Access and close access

Status
Not open for further replies.

puforee

Technical User
Oct 6, 2006
741
0
0
US
I have a db that imports some data and manipulates it and stores it in tables. When I open the DB a form show that has two buttons. On button runs the table build macros and the other button is the exit button.

I use VBA, application.quit, to close the DB. However...and there is always a however...
Upon quitting I want to open a specific spreadsheet. So I included the open code before the application.quit command.
But when the spreadsheet opens it automatically updates its information from the still open DB. So, I get errors when the spreadsheet does it's update because the DB is still open.

Is there a way I can have access not wait for the spreadsheet to open before it closes its DB? Hopefully that will be fast enough to allow the spreadsheet to update.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top