MoveSize Action

MoveSize Action

See Also         Example

You can use the MoveSize action to move or resize the active window.

Setting

The MoveSize action has the following arguments.

Action argument Description
Right The new horizontal position of the window's upper-left corner, measured from the left edge of its containing window. Enter the position in the Right box in the Action Arguments section of the Macro window.
Down The new vertical position of the window's upper-left corner, measured from the top edge of its containing window.
Width The window's new width.
Height The window's new height.

If you leave an argument blank, Microsoft Access uses the window's current setting.

You must enter a value for at least one argument.

Note   Each measurement is in inches or centimeters, depending on the units set for Measurement System on the Number tab of the Regional Settings Properties dialog box in Windows Control Panel.

Remarks

This action is similar to clicking Move or Size on the window's Control menu. With the menu commands, you use the keyboard's arrow keys to move or resize the window. With the MoveSize action, you enter the position and size measurements directly. You can also use the mouse to move and size windows.

You can use this action on any window, in any view.

Tips

To run the MoveSize action in Visual Basic, use the MoveSize method of the DoCmd object.