Access 2007-2013
Access 2000-2003
Access Seminars
TechHelp Support
Tips & Tricks
Access Forum
Course Index
Topic Glossary
Insider Circle
 
Home   News   Tips   Glossary   Templates   Forums   Help   Logon   Order   Contact Us  
 

Forums     

Microsoft Access Forum
By Richard Rost   Richard Rost on Facebook Richard Rost on Twitter Richard Rost on Google Plus Richard Rost on LinkedIn Email Richard Rost
 
This forum is for the discussion of Microsoft Access.

Access is my personal specialty. Have questions? Comments? Want to discuss how to do something? Post it here. Also, I get a LOT of questions sent to me in Email from people around the world. I'll post the interesting ones in here. Feel free to comment on them.

Click Here To Subscribe to this forum and receive an email update whenever new posts are added, just scroll down to the bottom of this page and enter your email address in the comment form.

Permanent Link
Keywords: microsoft access forum
Post New Topic

Read Prevent incomplete record saving by Will @ 3/11/2013
Micah,

I have no validation rules for any field and every field is required = no.  And still I get that message.  Any other ideas?
Show Just This Thread        Post Reply
Read Prevent incomplete record saving by Mubeezi Micah @ 3/9/2013
Dear Will,

you may need to check your validation rules (table and form level). if any of the fields on the form is set Required=Yes, then you may get that error message. Or may be someone on the forum approaches it differently? please share.

MICAH
Show Just This Thread        Post Reply
Read Prevent incomplete record saving by Will @ 3/7/2013
Thanks Micah.  But how do I get rid of the MS Access auto notification saying "You can't save record at this time....Do you want to close anyway?"
Show Just This Thread        Post Reply
Read Prevent incomplete record saving by Alex Hedley @ 3/6/2013
You could also have a Cancel button that has

Me.Undo
or
DoCmd.RunCommand acCmdUndo
Show Just This Thread        Post Reply
Read Prevent incomplete record saving by David S @ 3/6/2013
If you want to use code instead of Richard's much more simple suggestion, surely you ought to use OR rather than AND. Your code will only set me.dirty if ALL conditions are satisfied, not if ANY condition is satisfied. I cannot comment on whether me.dirty does anything if set to false!
Show Just This Thread        Post Reply
Read Prevent incomplete record saving by Mubeezi Micah @ 3/5/2013
ear Will,

You can also try changing the AND condition to OR. This way, if just one of the six fields is NULL, the record will not be saved. Also, notice that i use Cancel = true. So your code would look like;

If IsNull(Me.SectorCombo) OR IsNull(Me.StationCombo) OR IsNull(Me.BuildingCombo) OR IsNull(Me.Description) OR IsNull(Me.Requestor) OR IsNull(Me.RequestorPhone) Then
msgbox "inform user why his record is not being saved and what he needs to do"
Cancel = True

End If


Lastly, i notice as if you have comboboxes in your code. Sometimes they have a value even when a user has not selected any option e.g., if one of the options in the combobox is "Select One". Make sure you take care of that in your code because in that instance, the combobox is not null but the value "Select One" is not the desired data that you may want to be saved in a table.

wishing you good luck with your project!

MICAH
Show Just This Thread        Post Reply
Read Prevent incomplete record saving by Beau @ 3/5/2013
I reckon I just like to make things hard on myself.  Haha Thanks for untying the knot Mr. Rost!
Show Just This Thread        Post Reply
Read Prevent incomplete record saving by Will @ 3/5/2013
I'm trying to prevent my database from saving incomplete records when users don't complete certain fields on the form. I put this code in the before update event but it still saves incomplete records. What am I missing? Thanks for the help!

Private Sub Form_BeforeUpdate(Cancel As Integer)

If IsNull(Me.SectorCombo) And IsNull(Me.StationCombo) And IsNull(Me.BuildingCombo) And IsNull(Me.Description) And IsNull(Me.Requestor) And IsNull(Me.RequestorPhone) Then
Me.Dirty = False

End If





Reply from Richard Rost:

How about just setting those fields to REQUIRED=YES?
Show Just This Thread        Post Reply

Collapse All Topics

 

Post Your Comments or Subscribe
    If you would like to be notified of new posts on this forum,
    just enter your email address below. It will be kept private.
 
If you just want to subscribe to get email updates when this forum is updated, then enter your name and email address and check the Notify Me box below. If you would optionally like to add your comments below to be posted, they are welcome.
 
  Your Name:  Required
  Your Email:  NOT Public
  Subject:
  Comments:

 

Sorry about this step. It's just to keep the spam bots away:
  Verify: What is 3+5:
  
  Notify me when the this forum is updated
  Remember Me for my next comments
  
 
 
Please do not use this form for Customer Service inquiries! If you have questions about your account, shipping info, courses you've ordered, need passwords, etc. please use the Customer Service Center instead.

I value your comments. They will be displayed on this page (above). Your name will be displayed, but your email address will not be.
As always, I promise to never give away your personal information to anyone else, ever.

NOTE: If you don't leave your name and email address, DON'T expect a reply. I can't promise a personal reply to everyone who posts here. I TRY my best, but I cannot guarantee it. If you don't leave your real name and email address, I won't even bother. I usually just hit DELETE. -Richard

 

 

You may want to read these articles from the 599CD News:

10/17/2014Access: Four Employees Per Event
10/14/2014Putting Access Databases on the Web
9/21/2014Microsoft Access Expert 25
9/20/2014Access 25 Just About Finished
8/2/2014What Access Topics Do YOU Want?
7/16/2014Microsoft Access Expert 24
7/15/2014Access 24 Finished
7/14/2014Windows 8.1 Delayed for Access 24
7/11/2014Sending Email from Microsoft Access
7/3/2014Microsoft Access Expert 23
 

Learn
 
Accessindex
Excelindex
Wordindex
Windowsindex
PowerPointindex
Photoshopindex
Visual Basicindex
ASPindex
Seminars
More...
Customers
 
Account Login
Online Theater
Downloads
Lost Password
Free Upgrades
Insider Circle
Student Databases
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Articles
Search Our Site
Waiting List
Production Schedule
Collapse Menus
Help
 
Live Chat
Customer Support
WalkThru Tutorials
Troubleshooting
FAQs
TechHelp
Consulting Services
About Us
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Order
 
Video Tutorials
Handbooks
MYOLP Memberships
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Gift CDs
Contact
 
Live Chat
General Info
Support Policy
Contact Form
Email Us
Mailing Address
Phone Number
Fax Number
Course Survey
Facebook    Twitter

Google Plus    LinkedIn

Blog RSS Feed    YouTube Channel
Richard Rost Microsoft MVP