W
Wayne
Hi all,
I have a form that loads at startup, called by the AutoExec macro. It's a
modal form which is more of a semi-intelligent splash screen. The form checks
the database location, and if the location fails a string comparison with
it's expected location (i.e. someone has copied the database to their desktop
rather than create a shortcut) it will warn them and ask them if they are
sure they want to open this file. It does this via a msgbox (vbYesNo).
Sometimes this msgbox displays in front of the modal form, but sometimes it
displays behind the modal form. If it displays behind the modal form, you
only need to click anywhere within the dialog box and access will repaint it
in front of the modal form. There is no consistency - if you open the
database repeatedly and the condition is met, sometimes the msgbox will be in
front, and sometimes behind the form.
Does anyone have any idea how/why this is occurring, and how I can prevent
this? The form needs to be modal as it is used elsewhere in the product as a
loading screen.
Thanks!
I have a form that loads at startup, called by the AutoExec macro. It's a
modal form which is more of a semi-intelligent splash screen. The form checks
the database location, and if the location fails a string comparison with
it's expected location (i.e. someone has copied the database to their desktop
rather than create a shortcut) it will warn them and ask them if they are
sure they want to open this file. It does this via a msgbox (vbYesNo).
Sometimes this msgbox displays in front of the modal form, but sometimes it
displays behind the modal form. If it displays behind the modal form, you
only need to click anywhere within the dialog box and access will repaint it
in front of the modal form. There is no consistency - if you open the
database repeatedly and the condition is met, sometimes the msgbox will be in
front, and sometimes behind the form.
Does anyone have any idea how/why this is occurring, and how I can prevent
this? The form needs to be modal as it is used elsewhere in the product as a
loading screen.
Thanks!