Hi all,
I’m back again with another question! Thank heaven for … the Forum!
How can I - If the User clicks on the X in the Title Bar
1. Msgbox “Do you really want to close the DB”
2. Then Cancel the Close Event when the User says NO.
I’ve tried putting this on the last form to close – the msgbox works fine but even if I say NO (docmd.cancelEvent) the DB still closes.
The reason I want to do this, is that often the User wants to close a report or Form and ends up closing the DB.
Thanks for any help.
I’m back again with another question! Thank heaven for … the Forum!
How can I - If the User clicks on the X in the Title Bar
1. Msgbox “Do you really want to close the DB”
2. Then Cancel the Close Event when the User says NO.
I’ve tried putting this on the last form to close – the msgbox works fine but even if I say NO (docmd.cancelEvent) the DB still closes.
The reason I want to do this, is that often the User wants to close a report or Form and ends up closing the DB.
Thanks for any help.