Results 1 to 6 of 6
  1. #1
    lindz5970 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2013
    Posts
    3

    Data Validation in a Table using criteria from another Table

    Hi, I'm trying to set up Data Validation using data from another table.
    I have 2 tables. Table1 contains 2 fields: Member Name and Coverage Date. My second table is just a list of Coverage Dates. My user is going to Edit Table1 by manually entering in a Coverage Date (I have a query set up with a prompt for a window to pop up and they manually type it) but I want the Coverage Date they enter to be ONLY a value from Table2. Is there a way to tell Table1 to only allow me to use a value found in Table2? Any help is greatly appreciated.

    Thanks!

  2. #2
    comop1 is offline Novice
    Windows 8 Access 2013
    Join Date
    Nov 2013
    Location
    Phoenix
    Posts
    1
    Sounds like you want to make a field in table 1 a lookup from table 2. Does that make sense?

  3. #3
    lindz5970 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2013
    Posts
    3
    Quote Originally Posted by comop1 View Post
    Sounds like you want to make a field in table 1 a lookup from table 2. Does that make sense?
    Sort of, but the Coverage Date the user is entering in Table1 is specific to the Name it's assigned with. So there's nothing in Table 2 that is unique that says which coverage date to use without the user manually selecting it. The user is manually typing the Coverage Date into Table1 so I basically want to get rid of user error by using Table2 as validation.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    I don't think you can use validation across tables. How about a combo box that gets its selections from table 2, with the limit to list property set to Yes?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    lindz5970 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2013
    Posts
    3
    Quote Originally Posted by pbaldy View Post
    I don't think you can use validation across tables. How about a combo box that gets its selections from table 2, with the limit to list property set to Yes?

    How would I do that? I have the combobox with the dates from Table2, but then do I need to make a query with the combobox to use in the Lookup of Table1?

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    I would expect that your form is bound to table 1, and the combo to the date field in table 1. Its row source would be from table 2.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 18
    Last Post: 04-21-2011, 10:38 AM
  2. Replies: 0
    Last Post: 03-18-2011, 06:38 AM
  3. Replies: 1
    Last Post: 11-19-2010, 09:08 AM
  4. Replies: 7
    Last Post: 11-22-2009, 02:38 PM
  5. Referencing table data in field validation rule
    By toad848 in forum Database Design
    Replies: 3
    Last Post: 03-19-2009, 07:03 AM

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