Restore or maximize after closing a form?

  • Thread starter Thread starter M Skabialka
  • Start date Start date
M

M Skabialka

Some of the users of my ACC2003 database like to maximize the forms, others
leave them where I place them with MoveSize to the top left corner.
One form they use is a calendar which I placed on its own tiny form so they
can pop it up for reference, then close it. But those people who maximize
the first and all subsequent open forms get this tiny form maximized also.
What command can I use to restore this form when opened (DoCmd.restore) but
then when closing put the calling form back to either its maximized or
restored size based on the user preferences?
 
Open the Calendar form as a dialog then it does not matter if the underlying
form is maximized or not

DoCmd.OpenForm "Calendar Form", acNormal, , , acFormPropertySettings, acDialog
 
Thanks, this will work. But is there a way to find out if a form is
maximized or not, a property you can access during run time?
 
M Skabialka said:
Thanks, this will work. But is there a way to find out if a form is
maximized or not, a property you can access during run time?

It'll be interesting to see what other replies you get to this query
<grin>.

Check out the various form object window properties in the help files.
It looks like you can get and set size, but doesn't give you what you
want directly.

API calls maybe?
 
Back
Top