Preventing Users from closing Access Accidently

C

CDM

I created a report that opens in preview mode. I have code that reads:
"Docmd.maximize" in the form_open event. The problem arises when an
inexperienced user wants to close the report and inadvertently clicks on the
top "x" button and closes Access completely instead of pressing the button
just below it which closes the report. Is there a way to keep that from
happening?
Thanks in advance.
 
A

Alex Dybenko

Hi,
you can create a new form, where you put a msgbox confirmation in unload
event, no confirm - then cancel=true, and open this form as hidden then you
start your app. Then user could not close access without confirmation

--
Best regards,
___________
Alex Dybenko (MVP)
http://accessblog.net
http://www.PointLtd.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top