Main form won't stay maximized after a report closes

  • Thread starter EvilSewingMachine
  • 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?
 
F

fredg

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.
 
G

Guest

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
 
E

EvilSewingMachine

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top