Results 1 to 5 of 5
  1. #1
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    1,919

    Popup form hidden

    I have a popup form that has command buttons that trigger the opening of other popup forms (3 in this instance). In the case of 3 of the secondary popup forms, one opens perfectly "in front" of the main popup. The case of the other two, they are open but are hidden. If I drag the main popup form a bit, the "hidden" form becomes visible but "behind" the main popup form. Strange behavior to say the least. Any ideas?


    Bill

  2. #2
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,115
    You could try to use Docmd.MoveSize in the Open event of the popup form to control their size and position when they open:
    https://docs.microsoft.com/en-us/off...docmd.movesize

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  3. #3
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    Could also try opening all 3, positioning as required, then click on the top form (make it the active object), save, close. Do the same for the last 2. Form position can be saved like that; not sure about z order though. Trouble with that is, anyone could mess that up. I'm also assuming you cannot open 1st, then 3rd, in that or some other variable order.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #4
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    1,919
    Before trying your suggestion, I tried using the acDialog option in the DoCmd.Openform and the problems disappeared. Still strange, as I have a few other Apps that have the same or similar arrangements and neither of them need the acDialog to open visible and "in front" of the main form.

    I did try using the DoCmd.Movesize, but it made no difference.

    BTW, this is a new A2007-A2013 accdb DB where all the forms, queries, module, etc were imported from an A2003 mdb. I wonder if that could account for the strange behavior? (Didn't seem to matter when I deleted ALL the linked tables in the BE and re-linked)

  5. #5
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    1,919
    Now that I've resolved the issue having added the acDialog option to the form open command, I'll leave it go at that. I'm in the process of migrating an old app to use Colin's hidden Access window code, so that's where I need to focus my time right now.

    Thanks for all you thoughts on the OP.
    Bill

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Closing Access with a hidden form
    By Miles R in forum Forms
    Replies: 14
    Last Post: 03-28-2019, 07:18 PM
  2. Replies: 7
    Last Post: 03-21-2018, 01:26 PM
  3. Replies: 3
    Last Post: 11-24-2014, 11:09 AM
  4. Replies: 1
    Last Post: 03-20-2013, 07:04 AM
  5. Replies: 0
    Last Post: 01-18-2011, 07:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums