Thank you for the quick reply.
I've already done that with regard to the two command buttons that close the
menu system in question (one to exit the menu, one to exit Access entirely).
Both work well.
The problem is that it's also possible close Access directly, which as far
as I can tell, cannot be distinguished programatically from closing the form
manually.
I guess the easiest solution is to just keep the turn the corner close
button off, that way closing Access will be the only obvious way for the user
to unload the form without going through one of my command buttons (though
they could still cause me trouble by closing it through the menu or hotkey).
Alternately, I might have Form_Unload return cancel if the unload event
wasn't triggered through one of my command buttons.
But the reason I don't like either of those solutions is because both
involve restricting functionality rather than *using* functionality. The
user should have access to the corner close button and should be able to exit
access without exiting my menu first, but I need to have my system tell which
way they've exited so that it can handle some close down routines properly.
Oh, well.
Thank you again.
George Nicholson said:
AFAIK, no, at least not directly.
However, you can set things up so that you know if a "Close App" button has
been pressed. Maybe that would help?
{snip}