Results 1 to 2 of 2
  1. #1
    esglover is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2010
    Posts
    3

    Validation Rules


    Hello,

    I am making a database that is used to enter Quality Control data. In order to prevent erroneous entries, I am setting up validation rules (for example the measured pH has to be between two certain values). This is easy enough to do when those numbers are fixed, but I want those to be able to be changed easily. Since there are several tables that have the same bounds, I want to have one place where they can be changed and have it update to all of the necessary tables.

    For example, I tried making a Bounds table with fields such as pHMin, pHMax, etc. I want the validation rule to be able to say something like:

    "Between Bounds.pHMin and Bounds.pHMax"

    Then when I go to the Bounds table I can put in any value I want for pHMin and pHMax and have that validation rule use those values. Unfortunately, this doesn't work. Is there a way to get Access to do this? Thanks in advance for your help.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    My preference for validation is to *always* perform it at the FORM level. I never use a table level validation. You can use the BeforeUpdate event of a control to validate in any way you choose. You also have far more control over the error messages displayed to the user at the FORM level.

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

Similar Threads

  1. Validation Question
    By ksmithson in forum Forms
    Replies: 1
    Last Post: 07-15-2010, 03:02 PM
  2. Validation Rule
    By Christopher in forum Forms
    Replies: 15
    Last Post: 04-20-2010, 06:05 AM
  3. password validation
    By RycherX in forum Forms
    Replies: 1
    Last Post: 02-20-2010, 03:55 PM
  4. Validation rules question
    By cps6568 in forum Access
    Replies: 3
    Last Post: 01-12-2010, 02:01 PM
  5. Validation Rule
    By robomose in forum Access
    Replies: 1
    Last Post: 09-09-2009, 05:59 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