What is the fastest way to eliminate duplicate records

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • muddasirmunir
    Contributor
    • Jan 2007
    • 284

    What is the fastest way to eliminate duplicate records

    i want to know what is the fastest way to eliminate dublicate record
    from file excel/access etc.

    suppose i have a large database in excel/access with one some with
    one field some with upto 10.
    i did not want to delete it maually because it may take a long time also
    error is possible

    i am not actually getting the logic for it.
    i have good know of proramming vb so can any body tell the logic for this
  • jamesd0142
    Contributor
    • Sep 2007
    • 471

    #2
    chec out this post:

    Last edited by Killer42; Feb 12 '08, 09:36 PM. Reason: Activate link

    Comment

    • Killer42
      Recognized Expert Expert
      • Oct 2006
      • 8429

      #3
      In program logic, you can do something like a nested loop. For example...
      Code:
      For each record
        For each record after that one
          If they're the same, delete one of them
        Loop
      Loop
      In an SQL database, you can do a "find duplicates" query to identify them, then delete them. The query builder wizard in Access will build a query for you to find duplicates, then you can just adapt it to delete them. Or use the query as is and delete what it finds another way.

      Comment

      • muddasirmunir
        Contributor
        • Jan 2007
        • 284

        #4
        Thanks excellent tutorial

        Comment

        Working...