Maximize Action

Microsoft Access Visual Basic

Show All Show All

Maximize Action

You can use the Maximize action to enlarge the active window so that it fills the Microsoft Access window. This action will allow you to see as much of the object in the active window as possible.

Note  This action cannot be applied to code windows in the Visual Basic Editor. For information about how to affect code windows, see the WindowState property topic.

Setting

The Maximize action doesn't have any arguments.

Remarks

This action has the same effect as clicking the Maximize button in the window's upper-right corner or clicking Maximize on the window's Control menu.

You can use the Restore action to restore a maximized window to its previous size.

Tips

  • You may need to use the SelectObject action if the window you want to maximize isn't the active window.
  • When you maximize a window in Access, all other windows are also maximized when you open them or switch to them. However, pop-up forms aren't maximized. If you want a form to maintain its size when other windows are maximized, set its PopUp property to Yes.

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