maximize a form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a button on a form that previews a report. When I close the report and
return to the form it is no longer maximized. I have tried putting the code
in the close event of the report but unless you set the focus back to the
form first it doesn't work. The reason I cannot add that line of code to the
close function of the report is because this report can be printed from a
variety of different forms. Is there any other place I can place the command
docmd. maximize so that the form is maximized when I return to it. I am using
Access 97.
 
Put a DoCmd.Restore line in the *report's* Close event and everything should
be just fine.
 
You could put DoCmd.Maximize in the form's "Activate" event, so it will
maximize every time it becomes active--like after the report (or another
form) is closed and this form becomes active again.
 
Back
Top