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 / General 2 / July 2007

Tip: Looking for answers? Try searching our database.

close form without required field msg box

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
deb - 31 Jul 2007 17:58 GMT
How can I close a form with required fields without the msg box popping up
to enter required fields.
I do not want the user to have to hit the escape button.  I want the form to
close without msgs.
Signature

deb

Jeff Boyce - 31 Jul 2007 18:22 GMT
Deb

How will Access "know" when it is OK to NOT require fields, or when it MUST
require fields?  Maybe you don't need required fields?

Regards

Jeff Boyce
Microsoft Office/Access MVP

> How can I close a form with required fields without the msg box popping up
> to enter required fields.
> I do not want the user to have to hit the escape button.  I want the form
> to
> close without msgs.
deb - 31 Jul 2007 18:32 GMT
If the user closes the form without filling in the required fields, the
record will be deleted. This is working.  however it displays the required
field msg box before deleting the record and closing the form.
Signature

deb

> Deb
>
[quoted text clipped - 11 lines]
> > to
> > close without msgs.
Jeff Boyce - 31 Jul 2007 18:39 GMT
It sounds like your user could close the form one time and get his/her work
deleted and close it another time and get it saved.  How do they know what's
happening?

Regards

Jeff Boyce
Microsoft Office/Access MVP

> If the user closes the form without filling in the required fields, the
> record will be deleted. This is working.  however it displays the required
[quoted text clipped - 18 lines]
>> > to
>> > close without msgs.
UpRider - 31 Jul 2007 18:43 GMT
Deb, in the property sheet change the required=yes to required=no for all
fields in question.
In the form_close event, have your code check each textbox that was formerly
'required'. If any are null, delete the record.
If all are OK, save the record.

HTH, UpRider

> If the user closes the form without filling in the required fields, the
> record will be deleted. This is working.  however it displays the required
[quoted text clipped - 18 lines]
>> > to
>> > close without msgs.
 
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.