Results 1 to 2 of 2
  1. #1
    quietmortal is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    1

    Question Creating unique ID's


    Hello everyone.

    I have a database in Access 2010 that I've put together to help audit enrollment data. Using the SSN as a unique field for each employee, I was able to put together a system to audit the data for employees. However, I am getting stuck with auditing the dependent data.

    The data we receive from vendors does not give a unique ID for each dependent. The dependent SSN is not a required field, so it is most often either missing, or it is filled in with a dummy SSN, such as 999-99-9999.

    The basic structure of the database so far consists of three tables. Two tables house employee data and dependent data on our end (they are exported as separate files in our system) and the third table is used to import the employee and dependent data from the vendor's side (they include employees and dependents on the same file).

    To perform the actual audit, I have queries set up to pull out and format the employee data from our end and the vendor employee data. Then there is another query which compares those two sets of data together to find the differences, using the employee SSN as a unique key for each record.

    The fields I am using in both the employee and dependent queries are: Employee SSN, last name, first name, DOB, Gender, Relationship (employee, spouse or child) Street address, City, State, Zip, Enrollment plan name and Coverage level.

    I've been working on this for about a week now and I have yet to figure out how to generate a unique ID for each dependent.

    I've tried concatenating various fields together, such as the first and last name, last name and DOB, and employee SSN, last name and DOB. None of the solutions I've tried have been able to come up with a unique ID. Can't use names because there are always several "John Smith's" and I cannot use the DOB because there are several instances of twins. Each time, I end up with a handful of ID's which are duplicates.

    I've used solutions from this forum in the past to great effect, which is why I signed up today just to ask this question. I wasn't able to find a similar thread anywhere.

    If there is any other information I can provide, please let me know.

    Thank you all in advance for any assistance you can provide.

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    a unique identifier shouldn't have any relevance to the actual data in your table for exactly the reasons you stated.

    Which system are you attempting to assign a unique key or are you trying to apply the same unique key to both the dependent table from your system and the entire list from the vendor employee data?

    I think what I would be tempted to do is when you import your data you import it into a table that has an autonumber unique identifier. Then when you import your vendor employee information you can link the data on Primary ssn, birth date, relationship, etc and 'look up' the primary key from YOUR system rather than attempting to get it into two tables.

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

Similar Threads

  1. Creating unique record from record and field data
    By arthurpenske in forum Access
    Replies: 3
    Last Post: 08-24-2011, 06:11 PM
  2. Replies: 3
    Last Post: 05-15-2011, 08:40 AM
  3. creating unique ID on existing table
    By TheShabz in forum Access
    Replies: 6
    Last Post: 01-24-2011, 03:53 PM
  4. Replies: 24
    Last Post: 09-01-2010, 02:09 PM
  5. Creating a unique ID for a new set of values
    By slaterino in forum Programming
    Replies: 1
    Last Post: 08-24-2010, 09:35 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