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!

Form Open by Command Button

Status
Not open for further replies.

end922

Technical User
Apr 17, 2007
59
US
Greetings,

wondering if there are any tips or tricks to getting a form to open maximazied after clicking on a command button. I have tried to size the form in design view then save then open form again. doesn't seem to work. In the properties of the form there is only a width property and not a height.
Thanks,
a little frustrated.
 
Hi,

In design view of the form in question, in properties for the form go to the event tab and onopen add this code....


Private Sub Form_Open(Cancel As Integer)
DoCmd.Maximize

End Sub


Hope this helps....


Ken

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top