Form won't maintain Maximized Size

G

Guest

I use DoCmd.Maximize for Form_A.

One button on Form_A uses the DoCmd.OpenForm "name" (no arguments) to open
FormB.

When I close Form_B and return to Form_A, Form_A is still Maximized like it
should be.

Another button on Form_A uses the Docmd.OpenReport "name" (no arguments) to
open a report.

When I close Report_C, Form_A has changed size.

I'm looking for any hint of code, or Modal/PopUp or anything that could make
this happen. In many other databases I swear I do the same thing (Open a
report and return to the main form), and this resizing does not take place.

Any help is appreciated.
 
J

Jeff Conrad

Put a DoCmd.Restore line of code in each Report's Close event.

Private Sub Report_Close()
DoCmd.Restore
End Sub
 

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