Results 1 to 2 of 2
  1. #1
    ernest_rhaniel is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2017
    Posts
    8

    MS ACCESS QUERY: I need to add a suffix to duplicate values on my table to make it unique

    I want to add suffix to all duplicate fields on my table.
    Ex.


    Table 1
    abcde
    abcde
    abcde
    fghij
    fghij
    klmno
    Expected Result
    Table 1
    abcde(1)
    abcde(2)
    abcde(3)
    fghij(1)
    fghij(2)
    klmno
    Any idea how I can accomplish this task using MS ACCESS??? Thank you.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,521
    Make an empty copy of your table,
    add an autoNum field,
    add a NewName field.
    append your data to the new table, record numbers are created in the autoNum field.
    now run an update query to write the new name to the NewName field:
    =oldName & autonumFld

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

Similar Threads

  1. Merge Duplicate Values with a Unique ID
    By afullerton in forum Access
    Replies: 12
    Last Post: 03-04-2014, 05:58 PM
  2. Replies: 1
    Last Post: 03-04-2013, 08:09 PM
  3. Duplicate Query Reporting Unique Values...
    By Tomfernandez1 in forum Queries
    Replies: 5
    Last Post: 04-19-2011, 04:22 PM
  4. Adding Sequential Values to Make-Table Query
    By obrien.robj in forum Queries
    Replies: 2
    Last Post: 08-25-2010, 12:55 PM
  5. Replies: 1
    Last Post: 08-18-2010, 02:36 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