DoCmd.Maximise

Enlarge the active window, the current Access form or report.

Syntax
      DoCmd.Maximise

When an Access window is maximized, all other windows will also be maximized when you open them or switch to them.

For Maximize to be effective you first have to change the Access option to allow Overlapping Windows.
The form must also be the active, selected object.

The size of an Access Window will be constrained by the size of the window containing the MS Access application, unless the form is a popup form, in which case it can be moved outside the main window.

Pop-up forms are never maximized. To format a form as a PopUp, set the forms PopUp property to True.

Example

DoCmd.SelectObject acForm, "frmName"
DoCmd.Maximise

“We’re not here to leave a mark, bro. Monuments, legacies, marks - that’s where we always go wrong. We’re here to revel in the world, to soak in the awesomeness of it, to enjoy the ride. The world’s maximum perfect as it is, beauty from horizon to horizon. Any mark any of us tries to leave - hell, it’s only graffitti. Any mark anyone leaves is no better than vandalism” ~ Dean Koontz

Related:

Minimize - Minimise a window.
Restore - Restore a maximized or minimized window.


 
Copyright © 1999-2021 SS64.com
Some rights reserved