Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MAXIMIZE FORM ON OPEN BY DEFAULT 2

Status
Not open for further replies.

maeling

Technical User
Sep 23, 2002
109
0
0
GB
When I open a form its default open property is between maximized and minimized (whatever that screen state is called). First of all is there a way to change this through the GUI, so that all forms open maximized?

If not how can this be done please ?
 
In the on load event of each form put:

docmd.maximize

 
Sub Form_Open
DoCmd.Maximize
end sub

The Maximize method carries out the Maximize action in Visual Basic. For more information on how the action works, see the action topic.

Note 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.

Syntax

DoCmd.Maximize

This method has no arguments.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top