form window maximize

  • Thread starter Thread starter JIM.H.
  • Start date Start date
J

JIM.H.

Hello,
Is there any way I can keep the form window full size all
the time. When I launch a report and minimize it, form
could not stay maximized in my environment.
Thanks,
Jim.
 
JIM.H. said:
Hello,
Is there any way I can keep the form window full size all
the time. When I launch a report and minimize it, form
could not stay maximized in my environment.
Thanks,
Jim.

The Access application basically has only one "maximized" state for all
its child windows, so minimizing the report window restores the form
window to its non-maximized state. What you can do is use the Activate
event of the form to maximize it, with an event procedure like this:

Private Sub Form_Activate()
DoCmd.Maximize
End Sub

That way, when the report is minimized and the form receives the focus,
it will be maximized again.
 
This works fine for my mainform. However I open a small
form with a button and I need it stay non-maximize. how
can I do that?
Thanks,
Jim.
 
JIM.H said:
This works fine for my mainform. However I open a small
form with a button and I need it stay non-maximize. how
can I do that?

Set its Pop Up property to Yes.
 
Back
Top