Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / August 2006

Tip: Looking for answers? Try searching our database.

cancel exit

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
maple - 24 Aug 2006 11:36 GMT
is there another way to stop a user exiting a form other than cancel = true?
maybe something on the lines of newrecord = false/ me.form.onexit = false?
any ideas?
Allen Browne - 24 Aug 2006 13:44 GMT
What are you actually trying to do here?

If you are trying to prevent the user saving a bad record, cancelling
Form_BeforeUpdate is the only solution.

If you don't care about checking the data, you just don't want them to be
able to close the form, cancelling Form_Unload is the go.

The form's Close event is too late.

Forms don't have an Exit event.

Signature

Allen Browne - Microsoft MVP.  Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

> is there another way to stop a user exiting a form other than cancel =
> true?
> maybe something on the lines of newrecord = false/ me.form.onexit = false?
> any ideas?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.