PRB: Unable to Close Microsoft Access from Control-Menu Box

    Article ID: Q103188
    Creation Date: 18-AUG-1993
    Revision Date: 19-SEP-1996

    The information in this article applies to:

    • Microsoft Access versions 1.0 and 1.1

    SYMPTOMS

    You receive the following error message when you attempt to close Microsoft Access from the Control-menu box:

       Currently unable to quit Microsoft Access
    
    
    CAUSE

    This problem occurs if the currently selected form has an OnClose property pointing to a macro that contains the Quit action.

    RESOLUTION

    Do not attach a macro containing the Quit action to the OnClose property of the form if you will be using the Control-menu box to quit Microsoft Access.

    STATUS

    This problem no longer occurs in Microsoft Access version 2.0.

    MORE INFORMATION

    Steps to Reproduce Behavior

    1. Create a blank, unbound form and save it as Form1:

            Form: Form1
            ---------------
            OnClose: Macro1
      
    2. Create a new macro and save it as Macro1:

            Macro Name      Action
            ----------------------
            Macro1          Quit
      
    3. Open Form1 in Form view, and then double-click the Microsoft Access Control-menu box, or choose Close from the Control-menu box. You will receive the error message:

            Currently unable to quit Microsoft Access.
      


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.
©1997 Microsoft Corporation. All rights reserved. Legal Notices.

Additional reference words: 1.00 1.10 on close system
KBCategory: kbusage
KBSubcategory: McrActn