The size of a form get maximized after displaying a report

odrap

Registered User.
Local time
Today, 22:04
Joined
Dec 16, 2008
Messages
156
All of my forms saves the size of the form during the unload event form: acbSaveSize Me.
During the load event of the form the size of the form as it was during unloading is restored: acbRestoreSize Me
That works fine, except when code on a form activate the opening of a report in preview. In such a cases, when the report get closed again, the size of the form gets as large of the whole screen.
What can be done to eliminate that behaviour?
 
Just put

DoCmd.Restore

in the Close event of each report.
 
Thanks for the advice
 

Users who are viewing this thread

Back
Top Bottom