Stop File Exit
Posted: Fri Feb 02, 2007 11:39 am
I would like to do the following: When a user closes the database file, I would like to display a custom dialogue that basically says, "You're about to close the file. If you really meant to do that, select OK. If you meant to simply log off, then select Log Off." Then, if the user hits OK then the file can close. But if hits Log Off, I want it to call the Re-Login script step and then STOP THE FILE FROM CLOSING. It's just the last part that I'm having trouble with. It seems that once you hit the X on the only open window in the file or select File -> Close, it can call the script via the File Options and it'll display the dialogue and even re-login, but immediately after the log-in it will still close. How do I stop it from closing? I'm just trying to make it so that my whole system doesn't shut down and have to reload just because someone was trying to log off. Any assistance here would be greatly appreciated.