Share via

MoveSize method with popup form

Anonymous
2014-08-11T19:20:20+00:00

Note:  I have edited this post after just realizing that it is the Popup property that causes the bad behavior, not the Modal property.

* * * * * * *

I have a popup form that opens to gather some information while a user is closing a project.  In the Open event for this form is the following:

DoCmd.MoveSize 3 * 1440, 2 * 1440, 4 * 1440, 3 * 1440

Focusing on the first two arguments to the MoveSize method, this should position the window 3 inches to the right of "the left edge of its containing window" and 2 inches below "the top edge of its containing window," according to Microsoft's documentation on the MoveSize method.  But this isn't happening.

I have two monitors.  I usually have my Access workspace in my right-most monitor when I work.  This form, however, seems to open in a location relative to the top left corner of my left-most monitor, instead of the containing window.

This is a particular problem for those who do not have multiple monitors.  For some reason, this form seems to open somewhere off their visible screen area entirely.  Because the form is modal, that effectively locks-up Access, and they have to force-quit.

Any insight into how I can get this form to open consistently relative to the containing window instead of the screen area?

Thanks!

Emily

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments