Maximizing a form because previous form is maximized

  • Thread starter Thread starter Darrell
  • Start date Start date
D

Darrell

A consistent problem I have is that when a form is
opened, it will be maximized if the form I am leaving is
maximized. This seems to happen regardless of AutoResize
and AutoCenter settings. How do I make certain that a
form will return to its last-saved size, even when the
previous window was maximized?

Thanks.
 
In the forms Open event try

DoCmd.Restore

However, this will affect all sub windows that are open, just as when one is
maximized, they're all maximized. Another option is to maximize the forms
you want maximized when you open them and do a restore in their close event.
 
Back
Top