Results 1 to 2 of 2
  1. #1
    MaxLev is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Dec 2012
    Posts
    2

    Creating Multiple Validation Rules For Forms

    Hello,

    I am attempting to create a form for data entry for a large supply company. The purpose would be to have fields that people can enter data into about the product they are currently looking at. There will be many fields including a field for 'Master Pack Weight' and 'Sell Pack Weight', among other similar to this. I would like to create a validation rule for 'Sell Pack Weight'<='Master Pack Weight', as well as 10 or so other rules that govern other relationships so mistakes are not entered into the form.

    I can't seem to figure out how to create multiple validation rules. Can someone assist?

    Thank you,

    Max

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,538
    I believe that you will need to create these rules using VBA employing the IF-THEN-ELSE syntax. Probably need to do it in the afterupdate event for the control you wish to validate. If it does not meet criteria, then have a message box open indicating an issue.

    Here is a link on the syntax.

    http://www.techonthenet.com/access/f...ed/if_then.php


    Alan

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

Similar Threads

  1. Field rules/validation rules
    By sk88 in forum Access
    Replies: 14
    Last Post: 02-26-2012, 01:03 PM
  2. Multiple Validation Rules
    By Theremin_Ohio in forum Access
    Replies: 1
    Last Post: 12-16-2011, 01:21 PM
  3. Question about Validation Rules
    By WilsonsW in forum Access
    Replies: 1
    Last Post: 04-18-2011, 05:06 PM
  4. Multiple Validation Rules in a form
    By GothardTech in forum Forms
    Replies: 1
    Last Post: 04-15-2011, 01:21 PM
  5. Validation Rules
    By esglover in forum Database Design
    Replies: 1
    Last Post: 07-23-2010, 08:02 PM

Tags for this Thread

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