form window maximize

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.
 
D

Dirk Goldgar

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.
 
J

JIM.H

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.
 
D

Dirk Goldgar

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.
 

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