resizing

  • Thread starter Thread starter Eric
  • Start date Start date
E

Eric

I preview a report from code on a form and the form
resizes. I want the form to stay open and maximized as
it was when it was opened. I set the Form's autoresize
property to "No", but that doesn't work.
 
AutoResize set to No will cause the report to stay zoomed to 100% as the
report is opened instead of changing to fit a full page into the window. It
doesn't affect the size of the window. The AutoResize on a form will cause
the form to size its window to fit the form as the form is opened. It has no
effect later when you open the report.

Access treats all child windows the same when it comes to Maximized or
Restored. If you maximize a window, all windows will be maximized until you
restore one, then all will be restored. Do you have code in the report or in
the button opening the report issuing a Restore command? If so, you could
issue a Maximize command again as you close the report.
 
I copied all the controls and code to a new form and this
fixed the problem. The AutoResize property was not it and
I had no Restore commands.
 
Back
Top