akc42
akc42

Reputation: 5001

How can I adjust the z-index of a form in Microsoft Access

I maintain a fairly large ms-access 2003 application. One of the recent changes that I was asked to make was to add a popup dialog box to warn used of a particular situation when the opened a form which is itself a pop up (although not modal) form.

Unfortunately, the new popup modal form comes up behind the original one, getting the user interface into an impossible position (you cannot close the modal dialog box because it is hidden, but you cannot move the others out the way because the modal dialog is preventing you).

I've temporarily made the new box come up to the very side of the screen but it is far from ideal.

Is there a way to specify the Z index of a form so I can control the layering? (or any other solution)

Upvotes: 0

Views: 373

Answers (1)

Andre
Andre

Reputation: 27644

The only way to control this is by the order in which you open the forms.

I.e. you have to first open the original popup form, then open the new modal popup.

You could also consider using MsgBox() instead of the new form.

Upvotes: 2

Related Questions