Results 1 to 4 of 4
  1. #1
    Gina Maylone is offline Always learning
    Windows 10 Access 2016
    Join Date
    Jun 2013
    Location
    Afton, MN
    Posts
    544

    Validation rule problems

    Happy Friday all!

    In order for me to get the sequential numbering to work appropriately, I need to save a record early on, but this is giving me fits with the validation rules. "Is Null Or Between 0.001 And 99.99", I have "is null or" on every validated field, but am getting validation errors. any ideas on how I can get around this? Besides removing all validation? I thank you in advance!

  2. #2
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Check the field's datatype, if it is a number then the default is 0, not null. Haven't tested it but couldn't you use "< 100"? Also check that required isn't set to yes.

  3. #3
    Gina Maylone is offline Always learning
    Windows 10 Access 2016
    Join Date
    Jun 2013
    Location
    Afton, MN
    Posts
    544
    Quote Originally Posted by aytee111 View Post
    Check the field's datatype, if it is a number then the default is 0, not null. Haven't tested it but couldn't you use "< 100"? Also check that required isn't set to yes.
    That was it! Zero not null!! DUH! Thank you so much!!

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    0 is default if you set the field or textbox to use. Since I developed a db that recorded laboratory test results and 0 could be a valid result of testing, I did not want it saved by default when record was created because a particular segment for a test might not be completed in which case there was no data, not even 0. So I always removed the 0 default setting when formatting tables. Therefore I needed validation to allow for null. Validation rule seemed to work best with Or Is Null as the last condition.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 06-16-2015, 03:52 AM
  2. Validation Rule
    By JeffGeorge in forum Forms
    Replies: 4
    Last Post: 02-27-2015, 04:12 PM
  3. Validation Rule
    By Sanjo in forum Forms
    Replies: 2
    Last Post: 12-10-2013, 11:02 PM
  4. Validation Rule
    By Megan in forum Access
    Replies: 1
    Last Post: 11-05-2010, 09:45 AM
  5. Validation Rule
    By mistaken_myst in forum Database Design
    Replies: 2
    Last Post: 10-29-2007, 02:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums