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

    after finding duplicates, how to update row?

    Hoping I am overlooking a simple way to do this ...



    I have a large employee table that is appended through 6 queries. After all of the append queries are run, there are tons of duplicate rows.

    I want the duplicate rows to be condensed into one row per employee.

    The table structure is
    SSN
    ID1 (text)
    ID2 (text)
    ID3 (text)
    ID4 (text)
    ID5 (text)
    ID6 (text)

    When all of the rows are appended, I end up with employees with multiple rows -- but one row has a value for ID1, one row has a value for ID2 and another row has a value for ID3, etc. There isnt a common business rule to indicate when a certain employee would have multiple rows so I cant make the SSN a primary key and have the append reject the duplicate rows.

    Can anyone think of a way to 'group' the employee rows so they become 1 row with all of the data on one row?

    Thank you so much for your insight!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Your sample shows SSN as field name but the data does not show repetition.

    You want to rearrange data to horizontal (left to right) display, essentially de-normalizing data.

    Review https://www.accessforums.net/showthr...rows-to-column
    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.

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

Similar Threads

  1. Replies: 1
    Last Post: 03-06-2012, 07:20 PM
  2. Finding the Next record
    By rjbautista20 in forum Programming
    Replies: 15
    Last Post: 01-20-2012, 01:27 AM
  3. Finding last week
    By jgelpi16 in forum Queries
    Replies: 5
    Last Post: 09-21-2010, 02:32 PM
  4. Finding Records that are not there!
    By TrudyD1474 in forum Queries
    Replies: 2
    Last Post: 06-18-2010, 04:41 PM
  5. finding a value in a recordset
    By TheShabz in forum Programming
    Replies: 9
    Last Post: 04-23-2010, 02:44 PM

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