Results 1 to 4 of 4
  1. #1
    6two6rob is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2015
    Posts
    2

    Need to create primary key for records with no unique value

    Okay, so I work at a law firm and we have two main tables of records put together by different departments (excel spreadsheets that I've imported into access).



    So the first sheet is made by my department, and we put in client case numbers along with last four of social security so each value in this field is unique.

    The problem is we have a second table which shows the same clients with additional information which I do not have. These records contain client names and emails etc, but the problem is there is no one field in the spreadsheet that has a unique record.

    I was wondering if there is some way to create a relationship between these two tables so I can look up a person by name on my table (which has a unique primary key) and find the person's records on another table.

    Thanks, I hope to contribute to this site as well.
    -Roberto

    My attempt at an example:

    Click image for larger version. 

Name:	example.png 
Views:	12 
Size:	11.8 KB 
ID:	23069
    Last edited by 6two6rob; 12-16-2015 at 04:02 PM. Reason: Additional Info

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,725
    First, get a good description of what you are trying to do. Keep it in simple, plain English.
    Once you get a description of your Business issue/opportunity, bounce it off your colleagues to make sure its complete. Do NOT try to embed Access/Database/jargon into the description.

    Also, you really should do a tutorial on Database design. Tables and relationships are fundamental concepts in database. A table deals with a specific subject. A primary key is a field whose value is unique and serves to distinguish every record in a table from every other record in that table.

    People names are PoOr candidates for a Primary key.

    I'm not sure of the scope of your activity, but you might get some ideas from this free data model of Legal Case management and the associated business rules.

    Good luck.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,921
    Names make very poor unique identifiers. You can build a query that has compound link on the common name fields but since you already identified the issue of people with same name, this will not produce valid output. The answer is that without a PK/FK relationship there is no way to link these tables - GIGO syndrome - Garbage In Garbage Out.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    6two6rob is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2015
    Posts
    2
    Thank you orange. I will look into this and return here when I have a better view of what I need to get done.

    I am new to Access, but excited to learn more about Database design!

    @June7:

    Very cool, now I have some material I can research to better understand Access. Thanks!

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

Similar Threads

  1. Replies: 14
    Last Post: 05-06-2015, 11:19 PM
  2. unique id on the primary key help
    By m1k3y1994 in forum Access
    Replies: 1
    Last Post: 03-08-2015, 07:40 AM
  3. Replies: 3
    Last Post: 09-25-2012, 05:24 PM
  4. Replies: 1
    Last Post: 08-19-2012, 09:55 PM
  5. Replies: 8
    Last Post: 03-16-2012, 01:07 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