DoCmd.MoveSize (Access)

The MoveSize method carries out the MoveSize action in Visual Basic.

You can use the MoveSize method to move or resize the active window. The units for the arguments are twips. You must include at least one argument for the MoveSize method. If you leave an argument blank, the current setting for the window is used.

MoveSize (Right, Down, Width, Height)


DoCmd.MoveSize 1440, 2400, , 2000

Arguments

Optional arguments

The following arguments are optional

Right (Long) - The new horizontal position of the window's upper-left corner, measured from the left edge of its containing window.

Down (Long) - The new vertical position of the window's upper-left corner, measured from the top edge of its containing window.

Width (Long) - The window's new width.

Height (Long) - The window's new height.