Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 80
Default Microsoft Excel VB opening Access Application

Why don't you just add a Quit action at the end of your Autoexec macro in
the Access .mdb?

HTH,
Nikos

"JD Smooth" wrote in message
...
Using the following code I'm able to open Access Databases, and with the

proper autoexec macro within the database it will run the required tasks.
Access however even once it has performed it's tasks and should terminate,
it stays running behind the scenes sucking resources. Is there a command
that should be added to close access? It never really opens, it simply is
running behind the scenes so there isn't a way to close it.

Sub start_access1()
' Initialize string to database path.
Const strConPathToSamples = "C:\Documents and

Settings\rcheek\Desktop\"
strDB = strConPathToSamples & "autoruntest.mdb"
' Create new instance of Microsoft Access
Set AppAccess = _
CreateObject("Access.Application")
' Open database in Microsoft Access window.
AppAccess.OpenCurrentDatabase strDB
End Sub



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Microsoft Excel VB opening Access Application

I do have the quit function within the Access Macro.



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
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
Microsoft Visual Basic errors displaid when opening Microsoft Word 97 & Excel (7 JJ mac Setting up and Configuration of Excel 7 June 14th 07 06:54 PM
microsoft office excel can't start the application Becky Excel Discussion (Misc queries) 0 February 1st 07 03:25 AM
Relation Microsoft Access avec Microsoft Excel Mounir Excel Discussion (Misc queries) 2 August 23rd 06 10:43 AM
Microsoft Excel is waiting for another application to complete an OLE action Glen Davis Jr. Excel Discussion (Misc queries) 0 May 4th 05 04:10 PM
Close Non-Microsoft Application From Excel Tom B Excel Programming 2 February 26th 04 06:40 PM


All times are GMT +1. The time now is 12:02 AM.

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

About Us

"It's about Microsoft Excel"