Pop up forms not "stacking" in the right order

Bennet

Member
Local time
Today, 12:43
Joined
May 23, 2020
Messages
36
Hi, fellow Access enthusiasts.

I have a front end database which runs with a maximised form as it's main interface.

Sometimes, I open a "pop-up" form in a window which opens in front of the main form - all fine so far.

Then the first pop-up form generates a second pop up form which gives the user some further info they have requested. This second pop-up should open in front of the first one - and it always did used to do that until a few months ago when it began opening, I think, behind the first pop-up. Both pop ups are in dialogue mode, so they lock interaction with the rest of the database until you close them. This is necessary.

Because you cannot see the secondary pop-up, this effectively locks up the screen. You can solve it by clicking around randomly and/or switching to another window completely, and coming back to the database, whereupon it may decide to show the correct form. You can always get it back after a bit of clicking around but it's not clear why.

Any idea why this has started happening and what I can do about it? It never used to do this and I didn't change anything. Happening for multiple users at my company.

My assumption is that it is behind the first form, but it's not impossible that it's off screen completely or otherwise invisible.

temp.png
 
Focusing on your final paragraph…

Popup forms are displayed where they were last saved in design view. So if you saved them on a secondary monitor, that’s where they will reopen. If then opened on a workstation with only one monitor, they will indeed be off screen.

Suggest you reopen the errant forms in design view and save in the correct location
 
I use bit of code to check which monitor the mouse pointer is on and move the popup to that monitor setting it to appear wherever you want

On my phone but can post it when back at my desk if of interest
 
Unless you actually need to see multiple forms at once, you might consider hiding the calling form so only the currently active form is visible. If necessary, you just add:
Me.Visible
As the first statement after the OpenForm which opens the modal popup.
 

Users who are viewing this thread

Back
Top Bottom