• Validation Rule (A2K)

    Author
    Topic
    #446696

    At table level, I need to REQUIRE that users insert a value that is ONLY 8 characters in length. NO alpha, and not less than 8 or more than 8 (allowing for leading zero’s)

    I have “REQUIRED” set to “YES”
    I can put : 00000000;;_ as the input mask but an Access MSG is generated and not the validation rule msg.
    I can put: Like “????????” in the Validation RULE and all works well. Validation MSG appears if the rule is broken. HOWEVER;
    If the user inserts 01234567 Access determines the RULE is broken, when in fact it’s not. 0 is numeric and the total characters is 8.

    How can I get past this problem?

    Viewing 0 reply threads
    Author
    Replies
    • #1086870

      I tried it and it appeared to work correctly. Could you post a stripped down copy of your database? See post 401925 for instructions.

      • #1086877

        (No Text)

        • #1086882

          If you want to keep leading zeros, you must use a text field, not a number field. If you enter 01234567 in a number field, Access will store the value 1234567.

    Viewing 0 reply threads
    Reply To: Validation Rule (A2K)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: