PRA: Data Outline Control AfterFormClose Event Not Triggered

    Article ID: Q143386
    Creation Date: 01-FEB-1996
    Revision Date: 29-JAN-1997

    The information in this article applies to:

    • Microsoft Access Developer's Toolkit version 2.0, 7.0

    SYMPTOMS

    When you assign an event procedure to the AfterFormClose event of a Data Outline Control, the code does not run when the event occurs.

    STATUS

    Microsoft has confirmed this to be a problem in the Microsoft Access Developer's Toolkit versions 2.0 and 7.0. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

    MORE INFORMATION

    Steps to Reproduce Problem

    1. Open the sample database Outline.mdb.
    2. Open the Example 4 form in Design view.
    3. Using the right mouse button, click the Data Outline Control object, and then click Build Event on the menu that appears.
    4. Select the AfterFormOpen event and add the following code:

            MsgBox "The AfterFormOpen event fired."
      
    5. Select the AfterFormClose event and add the following code:

            MsgBox "The AfterFormClose event fired."
      
    6. Save and close the form.
    7. Open the Example 4 form in Form view, and then double-click the first item (or order) in the Data Outline Control. Note that after the Orders form opens, you receive the message "The AfterFormOpen event fired."
    8. Close the Orders form. Note that you do not receive a message when the form closes even though the AfterFormClose event has occurred.

    REFERENCES

    For more information about the AfterFormClose event, search for "AfterFormClose," and then "AfterFormClose Event" using the Outl1016.hlp Help file included with the Microsoft Access Developer's Toolkit.


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: 2.00 7.00
KBCategory: kbinterop
KBSubcategory: IntpCstm