Heenan, Lambert
Lambert.Heenan at AIG.com
Wed Mar 12 08:32:16 CST 2003
Short of sub-classing the application window, the answer is no. However, your workaround is to have the application's main form monitor the value of a form scope variable. The variable will be set to False when the appropriate "Close the application button" is clicked. Then define an Unload event for the application's main form. The unload event has a Cancel parameter. When set to True it prevents the form from unloading. So if the uses just hits the Access window's close button, the form's unload event will be cancelled and the application will continue to run. Of course you would also put a MsgBox call in the unload event telling the user's to hit the correct button. Lambert > -----Original Message----- > From: Barbara Ryan [SMTP:BarbaraRyan at cox.net] > Sent: Wednesday, March 12, 2003 9:21 AM > To: Access List > Subject: [AccessD] Hide Close button in application window > > Is there any way to hide the Close button on an Access 97 application > window? The client just wants an "Exit Application" button on the main > menu form as the only way to terminate the application. > > Thanks, > Barb Ryan