stopping the close form in the file option in certain situations can be a dangerous thing. Corruptions etc BUT the X control is found in the forms PROPERTIES section. To get to the main form properties click on the small square, top left side of the form adjacent to the rule. change close button from yes to no
I avoid that problem all together by not using a switchboard, instead I just use a toolbar, it's always there, and the user has to go through a lot more effort to get rid of it.
SelectTools>Customize and go to the Commands tab, if you scroll down the categories list you will see "All Forms", "All Reports", etc. Just drag it to a toolbar and you're good to go. Umm...actually I guess I created a new toolbar, but I don't remember how I did that. But anyway, you get the idea.
The application is constantly evolving as new reports and functionality is added to it. And this way, the users get used to using a common interface, and as a new report is added, I just add a new button to the toolbar, and if they are related, I just add a new menu to it which allows a consistent, simple interface to everything they need.
I think it's best asset is that it is unobtrusive. There is no need to force a switchboard to pop-up everytime all the windows are closed.
the aim is store once, not store multiple times
Remember... Optimize 'til you die!
Progaming environment: Access based on my own environment: DAO3.6/A97/A2000/A2003/A2007/A2010 VB based on my own environment: vb6 sp5 ASP based on my own environment: 5.6 VB-NET based on my own environment started 2007 SQL-2005 based on my own environment started 2008 MYLE YOUR PASSWORD IS JUST LIKE YOUR TOOTHBRUSH DON'T SHARE IT.
the reason i ask is that i have created a tool bar with a close form button on it that runs a macro. the macro says:
it works perfectly (maybe to perfectly) because even though i have already done as you all sugjested and disabled the x close button in the form properties my switchboard still closes when i use this button