macro for restoring form

L

Linda Helm

I have my database set up so that when it opens it goes to
full screen, so when I click on a button to pop up another
form I want it to be restore size, not maximized like the
main form so I used a macro to restore the popup form,
only problem is the main form behind it also restores!!!
HELP!!

~Linda
 
D

Dirk Goldgar

Linda Helm said:
I have my database set up so that when it opens it goes to
full screen, so when I click on a button to pop up another
form I want it to be restore size, not maximized like the
main form so I used a macro to restore the popup form,
only problem is the main form behind it also restores!!!
HELP!!

The application has only one Maximized or Restored state, so when you
maximize or restore one form, all non-popup forms are maximized or
restored. However, forms with their PopUp properties set to Yes should
be independent of this. My guess is that your "popup form" doesn't
actually have its PopUp property set to Yes. Try that -- it's on the
Other tab of the form's property sheet in design view.
 
R

Reggie

Linda, One other thing you could try besides what Dirk provided is you could
set the OnClose event of your popup form to maximize your main form


Private Sub Form_Close()
Forms!YourMainForm.SetFocus
DoCmd.Maximize
End Sub
 

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