Microsoft KB Archive/109822

{|
 * width="100%"|

PRB: MoveSize Action Affects Wrong Window
'Article ID: Q109822

Creation Date: 10-JAN-1994

Revision Date: 01-DEC-1996' The information in this article applies to:


 * Microsoft Access versions 1.0, 1.1, 2.0, 7.0, 97

SYMPTOMS

Moderate: Requires basic macro, coding, and interoperability skills.

The MoveSize macro action does not move a form opened by an OpenForm macro action within the same macro if the Window Mode argument is set to Dialog. Instead, the MoveSize action waits until the form is closed and then affects the window that is subsequently selected.

RESOLUTION

When you set the Window Mode of the OpenForm action to Dialog, it makes your form modal and pop-up; macro execution pauses until you close the form. Instead of using the Dialog Window Mode to open the form, set your form's Modal and PopUp properties to Yes, and then open the form with a Window Mode argument of Normal. The MoveSize action correctly moves and sizes forms opened in this manner.

MORE INFORMATION

Steps to Reproduce Behavior

 Open the sample database Northwind.mdb (or NWIND.MDB in versions 1.x and 2.0).  Create the following new macro, and then save it as Move Test: Move Test     Action ---                    OpenForm MoveSize Actions --     OpenForm Form Name: Customers View: Form Data Mode: Edit Window Mode: Dialog MoveSize Right: 2 in        Down: 3 in  Run the macro. Note that the form opens but does not move. Close the Customers form. Note that the Database Window (or Database Container in versions 1.x and 2.0) moves after the Customers form is closed.

REFERENCES

For more information about Modal, MoveSize, or OpenForm, search the Help Index for "Modal Property," "MoveSize Action," or "OpenForm Action."
 * }

-

"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 2.00 7.00 97 8.00

KBCategory: kbusage

KBSubcategory: McrActn