PRA: Form Closes Even When CloseButton Property Set to No

    Article ID: Q149943
    Creation Date: 16-APR-1996
    Revision Date: 03-DEC-1996

    The information in this article applies to:

    • Microsoft Access versions 7.0, 97

    SYMPTOMS

    Novice: Requires knowledge of the user interface on single-user computers.

    In Microsoft Access 7.0, if a form's CloseButton property is set to No so that the form's Close button is disabled, the form closes if you click the disabled Close button when the form is maximized.

    In Microsoft Access 97, if a form's CloseButton property is set to No so that the form's Close button is disabled, it becomes enabled when the form is maximized and closes the form if clicked.

    STATUS

    Microsoft has confirmed this to be a problem in Microsoft Access 7.0 and

    1. We are researching this problem and will post new information here in
    the Microsoft Knowledge Base as it becomes available.

    MORE INFORMATION

    This behavior occurs only while Microsoft Access forms are maximized and the CloseButton property of the form being used has been set to No.

    Steps to Reproduce Problem

     1. Open the sample database Northwind.mdb.
    
     2. Open the Products form in Design view.
    
     3. If the property sheet is not open, on the View menu click Properties.
    
     4. Click the All tab on the property sheet and locate the ControlBox
        property.
    
     5. Set the ControlBox property to Yes.
    
     6. Locate the CloseButton property.
    
     7. Set the CloseButton property to No.
    
     8. Click Close on the File menu to close and save the changes.
    
     9. Open the Products form in Form View. Note that the Close button is
        not available (dimmed) and cannot be used to close the form.
    
    
  • Maximize the Products form.
  • Click the form's Close button. Note that the Products form is maximized and that the form can be closed using the dimmed Close button.

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.

KBCategory: kbusage
KBSubcategory: FmsProp
Additional reference words: 7.00 97