DoCmd.Minimize method (Access)

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



expression A variable that represents a DoCmd object.


Use this method to remove a window from the screen while leaving the object open. You can also use this method to open an object without displaying its window. To display the object, use the SelectObject method with either the Maximize or Restore method. The Restore method restores a minimized window to its previous size.

This method cannot be applied to module windows in the Visual Basic Editor (VBE). For information about how to affect module windows, see the WindowState property topic.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.