Preventing Users from closing Access Accidently

  • Thread starter Thread starter CDM
  • Start date Start date
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.
 
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
 
Back
Top