As far as I am aware, the last form opened is the first form to close.
Regards,
Andreas
Warrio wrote:
is there an order on which access closes the forms?
is by the form who has the focus?, is it the form's name? is it the 1st
loaded?.... or is it just random??
Thanks
"Andreas" <
[email protected]> a écrit dans le message de (e-mail address removed)...
May be you could use the 2nd form's Unload event to close the 1st form,
depending on what it is you are trying to do.
Regards,
Andreas
Warrio wrote:
thanks for your answers, but the thing is that I have forms that never
close unless the user decide to close the hole application. and one
form should close only if the 1st window is closed.
and unfortunately the unload event goes first to the 2nd form.
how can I make it go to the 1st form unload event?
Thanks again
"Graham Mandeno" <
[email protected]> a écrit dans le
message de news: (e-mail address removed)...
No, but the common workaround is to open a hidden form when the
database opens and create an Unload event procedure for this form.
All forms must be closed before the Access application terminates, so
if any open form cancels its Unload event, nothing happens and the
application stays open.
--
Good Luck!
Graham Mandeno [Access MVP]
Auckland, New Zealand
Hello,
as for a form, does an unload event exist for the hole access
database?
an event that occurs when the user clicks on the main application
cross button.
Thanks in advance!