Results 1 to 3 of 3
  1. #1
    SteveSydney is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    May 2017
    Posts
    5

    Data Validation only works if I enter a value

    I have a field on a form that has a data validation rule.



    This only works, if I actually enter a value.

    Why?

    Eq I test for the field to be greater than 5.

    The first time I enter 1 to 4, it gives me an error, then if I tab out of the field again, it ignores the error?

    Is this normal?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,822
    Doesn't ignore for me. In fact, if I delete the entry, validation fails because of Null.

    Post the validation rule expression.

    If you want to provide db for analysis, follow instructions at bottom of my post.
    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.

  3. #3
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,016
    Quote Originally Posted by SteveSydney View Post
    I have a field on a form that has a data validation rule.

    This only works, if I actually enter a value.

    Why?
    If you don't enter data into it...what does it have to validate?

    If you want to validate the data and insure that the Field is populated, you need to do the validation and make it required, either in the Table Def or in the Form_BeforeUpdate event.

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

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

Similar Threads

  1. How do you enter validation rule for this?
    By slenderman1 in forum Access
    Replies: 1
    Last Post: 04-07-2016, 07:49 PM
  2. Replies: 1
    Last Post: 06-21-2015, 07:58 AM
  3. Replies: 14
    Last Post: 01-07-2014, 04:20 PM
  4. Data enter validation on a form
    By Secue in forum Forms
    Replies: 5
    Last Post: 07-16-2013, 08:32 PM
  5. Replies: 1
    Last Post: 08-02-2011, 07:21 AM

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