Main form won't stay maximized after a report closes

  • Thread starter Thread starter EvilSewingMachine
  • Start date Start date
E

EvilSewingMachine

Greetings all~
I have a main form that I want to open maximized and stay
maximized until I close the database. The problem is that every time I
open a report or another form from this main page, after I close the
report or form, my main form is no longer maximized. I placed this
code:

DoCmd.Maximize

In the "On Open" event so it opens maximized.

How can I KEEP it maximized?
 
Greetings all~
I have a main form that I want to open maximized and stay
maximized until I close the database. The problem is that every time I
open a report or another form from this main page, after I close the
report or form, my main form is no longer maximized. I placed this
code:

DoCmd.Maximize

In the "On Open" event so it opens maximized.

How can I KEEP it maximized?

Do you have code, i.e. DoCmd.Restore in the other form's or reports.
 
Greetings all~
I have a main form that I want to open maximized and stay
maximized until I close the database. The problem is that every time I
open a report or another form from this main page, after I close the
report or form, my main form is no longer maximized. I placed this
code:

DoCmd.Maximize

In the "On Open" event so it opens maximized.

How can I KEEP it maximized?
Try placing the Docmd.Maximize on the On Activate event.

Hope this helps

Falty
 
I don't have a restore code in the other forms and reports. What event
would I put it under? All of the forms and reports?
I put DoCmd.Maximize in the On Activate event and now my main form
maximizes every time I navigate back to it, but it does not stay
maximized, I can see it in the background laughing at me. Any ideas?

Noah
 
Back
Top