Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Access.Application.Quit - opens Access again then won't close - He

I'm using Excel to get some data from a database query. But I need to update
the data first so I've created an Object (ObjAccess) then typed
Set ObjAccess = Access.Application
Run some code in Access, updated tables, checked data etc. etc.

My problem comes when I try to get it out of memory.

I use the line ObjAccess.CloseCurrentDatabase the database is still in
memory even after the Sub ends.

If I use ObjAccess.Quit it opens Access again and won't let me close it (I
have to go to Task Manager & use End Task.)
The same happens if I use Set ObjAccess = Nothing.

If I don't do anything, this database stays in memory (even after the Sub
has finished) and I can't modify any data in the database as I get the
message "You don't have exclusive access".

Is there something I'm missing??? Is there something I need to do in teh
setup of Excel and/or Access to get this to work?

Please help!!!
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Close Excel tables from Access StacyM Excel Discussion (Misc queries) 0 August 11th 09 09:04 PM
difference application.quit & application.close Pierre via OfficeKB.com[_2_] Excel Programming 4 November 8th 05 07:55 PM
macro to close excel application other than application.quit mary Excel Programming 1 September 14th 04 03:43 PM
unable to close macro using auto_close or application.quit gloria Excel Programming 1 January 14th 04 07:50 AM
.saveas and .close methods from Access Marius from Rome Excel Programming 0 January 7th 04 05:03 PM


All times are GMT +1. The time now is 05:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"