Re: Can I disable the "X" for the application?



"PamelaDV" <pdevries@xxxxxxxxxx> wrote in message
news:1151506751.464855.317780@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I am wondering if there is a way to disable the "X" used to close the
Access application window? I know how to disable it for individual
forms, but I would like to disable it for the application in general
and force users to use a button on the switchboard to close (because I
run important code on the close of the database from that button).

Any ideas are always appreciated.


Thanks!


You can't do that but what you can do is run your code from the Unload event
of the last form to be closed. That way, no matter how the app is closed
(aside from a crash) the code will run.

HTH - Keith.
www.keithwilby.com


.



Relevant Pages

  • Re: Can I disable the "X" for the app?
    ... Access application window? ... and force users to use a button on the switchboard to close (because I ... Please don't multi-post. ... Keith. ...
    (microsoft.public.access.formscoding)
  • Re: Display scrolling
    ... Have you checked to see if the window is frozen? ... I use a similar method the force users to stay on the certain page ... Mike ...
    (microsoft.public.excel.misc)
  • Re: Mystery button!
    ... Purpose of the Pushpin Located in the Outlook Express Window ... >> HTH - Please Reply to This Thread ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: SQL 2005 Managment Studio
    ... Why would they force users to operate in such a small window. ... no sense to me in terms of usability. ... such work in a query window instead of the GUI tool. ...
    (microsoft.public.sqlserver.tools)
  • Re: How to determine the filename and application name of window under cursor
    ... Have a look at the "Downloading and Installing the Source Code" topic ... you can use the WindowFromPoint API function to get the ... >> get the module handle from the window handle. ... >> HTH, ...
    (microsoft.public.vb.winapi)