Article ID: 164455 - Last Review: January 19, 2007 - Revision: 4.3 ACC: Problems Quitting Microsoft AccessThis article was previously published under Q164455 Moderate: Requires basic macro, coding, and interoperability
skills. On This PageSYMPTOMS When you click Exit on the File menu in Microsoft Access,
Access does not quit. This article assumes that you are familiar with Visual Basic for Applications and with creating Microsoft Access applications using the programming tools provided with Microsoft Access. For more information about Visual Basic for Applications, please refer to your version of the "Building Applications with Microsoft Access" manual. CAUSE There are two possible causes for this problem:
RESOLUTION When you use Microsoft Access as an automation server,
invoke the Quit method to explicitly close the Microsoft Access object when you
are finished with it in your code, and then set its object variable equal to
Nothing, for example: MORE INFORMATIONSteps to Reproduce BehaviorThe following example uses automation to open a second instance of Microsoft Access that will not close:
190074
(http://support.microsoft.com/kb/190074/EN-US/
)
ACC97: Unable to Quit Microsoft Access
REFERENCES For more information about using Microsoft Access as an
automation server, search the Help Index for "Automation," and please see the
following articles in the Microsoft Knowledge Base: 147816
(http://support.microsoft.com/kb/147816/EN-US/
)
ACC: Using Microsoft Access as an Automation Server
145707
(http://support.microsoft.com/kb/145707/EN-US/
)
ACC: Using Automation to Print Microsoft Access Reports
| Article Translations
|

Back to the top
