Validation Rule Question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • KPR1977
    New Member
    • Feb 2007
    • 23

    #1

    Validation Rule Question

    I want to set a validation rule that will not allow me to input data in field1 in TableA that is not found in TableB under field2. Basically, Table B under field 2 has the following row entries: Apple, Pear, Lemon, Orange. When I input data in field 1 for Table A I want it to give me an error message if try and input Watermelon (since Watermelon doesn't exist anywhere in Table2.) If anyone could help me out with this, it would be much appreciated.

    Here's what I tried as a validation rule, but of course it didn't work.
    Validation Rule: in([TableB].[Field2])
  • MMcCarthy
    Recognized Expert MVP
    • Aug 2006
    • 14387

    #2
    Originally posted by KPR1977
    I want to set a validation rule that will not allow me to input data in field1 in TableA that is not found in TableB under field2. Basically, Table B under field 2 has the following row entries: Apple, Pear, Lemon, Orange. When I input data in field 1 for Table A I want it to give me an error message if try and input Watermelon (since Watermelon doesn't exist anywhere in Table2.) If anyone could help me out with this, it would be much appreciated.

    Here's what I tried as a validation rule, but of course it didn't work.
    Validation Rule: in([TableB].[Field2])
    Forget using a validation rule. Just change the field in TableA to a Lookup list based on the entries found in TableB and limit to list.

    Comment

    • KPR1977
      New Member
      • Feb 2007
      • 23

      #3
      Originally posted by mmccarthy
      Forget using a validation rule. Just change the field in TableA to a Lookup list based on the entries found in TableB and limit to list.
      That was easy. Thanks!!! =)

      Comment

      • MMcCarthy
        Recognized Expert MVP
        • Aug 2006
        • 14387

        #4
        Originally posted by KPR1977
        That was easy. Thanks!!! =)
        No problem.

        Comment

        Working...