Opening Form will not stay maximized

neffs

Registered User.
Local time
Today, 09:29
Joined
Mar 23, 2003
Messages
14
I have created a form to display when I open my database. I don't like switchboard. I have put command buttons on the form to take me to the programs that I want to open. When I return to this form I want it to be maximized. When I return from some forms it stays maximized, but there are a few forms that when I return the form restores to some other state which is not maximized. I maximize on activation and have tried maximizing on load, opening, etc. but it always restores to some non maximized state after I return from some of my forms. I can maximize on clicking Detail but I don't want to have to do that. Any suggestions? Been driving me crazy.

Sam Neff
sam_neff@rlasd.k12.pa.us
 
I have tried this but it doesn't work.
 
DoCmd.Maximize

...should be in the main forms OnOpen event. You should be closing the main form each time you open another form from the main form. Then open the main form from each form as you exit the other forms.

DoCmd.Restore

...should restore the form back to the state it was previously in.

HTH
 
I was trying to avoid doing that because I thought there should be another way. But I guess that it is not too inconvenient to do that so I will try it. I'm pretty sure that will work. Thanks.

Sam Neff
 
Try putting a

DoCmd.Maximize

in your form's OnActivate event procedure.

Hope this helps,
 

Users who are viewing this thread

Back
Top Bottom