You will not, however, be able to hide the close button on the main
access window this way.
My suggestion to only allow a user to exit a form or the application
from command buttons you create is to add some code into the Unload
event and your exit command button(s) of each of your forms. Setup
your command buttons so that they pass a value when clicked, then look
for that value in the Unload event of that form. If that value is not
set then Cancel the unload event. This way the form wont close unless
your specific command button(s) are clicked.
I know that was a very high level suggestion, so if you need further
assistance or more detail on how to set this up just ask.
-microb0x
Yes, there's an entry in the form's properties field [best go to the All tab]
that let's you hide all kinds of buttons.
You'll have to do this for every form individually though.
barty said:
Can I hide the main application close button so that users cannot exit from a
form and the application other than with specific buttons that I have created?- Hide quoted text -
- Show quoted text -