PRB: Activate, Deactivate Events Do Not Occur on Pop-Up FormArticle ID: Q117173Creation Date: 22-JUN-1994 Revision Date: 01-DEC-1996
The information in this article applies to:
SYMPTOMS
Moderate: Requires basic macro, coding, and interoperability skills.
The macro or code specified by a pop-up form's OnActivate or OnDeactivate
property setting is not triggered as you expect.
CAUSE
The Activate and Deactivate events are triggered only when you switch among
forms that are "child" forms of the Microsoft Access MDI window. Child
forms are forms that have a Windows window style of WS_CHILD, and whose
parent is the MDI window. Pop-up forms have a window style of WS_POPUP, and
are not governed by the same Windows MDI messages and events as child
windows.
RESOLUTION
Instead of assigning your macro or code to the pop-up form's Activate or
Deactivate event, try using the Open, Load, Resize, or Current event
instead.
MORE INFORMATION
Steps to Reproduce Behavior
|
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.