Mainform = Maximize; Subform = Restore

I have a textbox on a "mainform".

When executing event "Double-Click" I bring up another form that allows for data entry.

Here's what I want to achieve:
1. Double-click on textbox... brings up the subform in RESTORE mode
2. At that same time, I do NOT want the mainform to be in RESTORE MODE.  Instead, I want that mainform to remain in MAXIMIZED mode.

It seems like it either way... I can only both view forms via DoCmd.Maximize or DoCmd.Restore.    Again, that's not want I need... mainform should be = MAXIMIZED; subform should be = RESTORED.

Any idea as to how I can force a different mode for either form?

Thanks,
Tom
TomBock2004Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

pdebaetsCommented:
You can open the second form as a pop-up to get it to open restored on top of a maximized form.

To make your form a pop-up, set the PopUp and Modal properties to true.

To open it restored, put a DoCmd.Restore in the form OnOpen or OnActivate event procedure.

To open a form maximized, put a DoCmd.Maximize in the form OnOpen or OnActivate event procedure.

Hope this helps!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
TomBock2004Author Commented:
Fabulous!!! That works awesome!

Thanks so much for the prompt reply.

Tom
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.