Restore only active window

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • reginaldmerritt
    New Member
    • Nov 2006
    • 201

    Restore only active window

    I have several forms which are all maximized by

    Code:
    DoCmd.Maximize
    I have another form which I want to open as a sort of pop up window. So I've set its Form_Load event procedure to

    Code:
    DoCmd.Restore
    However, this restores the maxmized form behind it as well.

    Is there any way of just restoring the active form?
    Or is there a way of setting a forms size?
    (DoCmd.Movesize doesn't seem to work when DoCmd.Maximize has been used)

    Thanks.
  • reginaldmerritt
    New Member
    • Nov 2006
    • 201

    #2
    Solved. Well sort off.

    One of the properties on a form is PopUp, when set to true this will restore the form and keep the other maximized.

    However, apparently you can't delete records on a PopUp form

    Comment

    • missinglinq
      Recognized Expert Specialist
      • Nov 2006
      • 3533

      #3
      However, apparently you can't delete records on a PopUp form...
      Setting a form to Popup or Popup/Modal does not, in and of itself, prevent records from being deleted! The poster in the linked post has to have something else going on other than the form being set to Popup to cause the problem.

      Linq ;0)>

      Comment

      • reginaldmerritt
        New Member
        • Nov 2006
        • 201

        #4
        Thanks for the info. :)

        Comment

        • NeoPa
          Recognized Expert Moderator MVP
          • Oct 2006
          • 32662

          #5
          See the linked thread for the code Reginald, but fundamentally you'd need to have all restored, but resized to appear maximised (where in other circumstances you'd just maximise them).

          Comment

          Working...