LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 535
Default Using Microsoft Access via Excel VBA, Houston we have a problem

Hi ImAGine,

I have a quit function within the Access Macro, but it is still running
in the background sucking system resources. Is there something that I'm missing?
Should Excel close Access instead of Access closing itself?
If so, how would Excel know that the Access Macro's have completed running?


You should close access yourself from Excel:

AppAccess.Quit
Set AppAcces=Nothing

Since you set an object reference to access (AppAccess), you can use access code from within Excel to open the database.
That way, the code of the autoexec will execute before the next macro command in Excel will be done.

Something like this (untested):

(Set a reference to the Microsoft Access library using tools, references)

Dim AccessApp As Access.Application
AccessApp.OpenCurrentDatabase "YourFIle"
DoEvents
AccessApp.Quit

Regards,

Jan Karel Pieterse
Excel MVP
www.jkp-ads.com

 
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
Relation Microsoft Access avec Microsoft Excel Mounir Excel Discussion (Misc queries) 2 August 23rd 06 10:43 AM
How do i access microsoft excel on windows xp? ayanda New Users to Excel 1 April 18th 05 02:27 AM
How do i access microsoft excel on windows xp? ayanda New Users to Excel 3 April 17th 05 09:41 PM
Microsoft Access Report into Excel Spreadsheet zeebyrd Excel Discussion (Misc queries) 1 February 27th 05 12:36 AM
Microsoft Excel VB opening Access Application Nikos Yannacopoulos[_5_] Excel Programming 1 May 20th 04 01:02 PM


All times are GMT +1. The time now is 07:02 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"