+ Reply to Thread
Results 1 to 2 of 2

Delete Query

  1. #1
    Registered User
    Join Date
    03-01-2007
    Posts
    37

    Delete Query

    Hello,

    I'm working on a database that has 300,000 plus lines. I need to delete duplicate lines, my question is how would i do a delete query to remove duplicate lines without removing both lines with no primary key established.

    Thanks,
    George

  2. #2
    Forum Administrator ExlGuru's Avatar
    Join Date
    03-17-2009
    Location
    India
    MS-Off Ver
    2003,2007
    Posts
    222

    Re: Delete Query

    Here is some code which is related to your problem. In this particular code
    two recordsets are used, one being a clone of the other. When a duplicate record is found, it is deleted from the first recordset and the next record is examined. When it has determined that the records do not match, both recordsets are advanced
    Try this code in your module


    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1