Resize forms - maximised and popup

G

Guest

I have one main form with a comand button which opens up a subform. I would
like the main form to remain maximised and the subform to be a smaller pop up
type form. The problem was that if the main form was maximised the subform
would also be maximsed.

For the smaller subform I have used the macro restore in on activate and in
the main form maximise in the on activate. This does actually work fine
except when I click on the subform the mainform does go smaller but when I
click on the main form again it does return to maximised.

Is there any way to keep the main form maximised at all times even when the
smaller subform is loaded?

Thanks.
 
W

Wayne Morgan

If the pop-up form has its Popup property set to Yes (Other tab) it should
do this. You may need to use the acDialog window mode argument in
DoCmd.OpenForm if opening the form through code. If you do, this will make
the pop-up "application modal" as well and will pause the calling code until
you close or hide the pop-up.
 

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