o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

Faster way to delete duplicates -

I have a table where some records have duplicate values in some fields, basically phone numbers (people get a record for each visit to the clients, who supply this data).
I loop through a recordset to delete duplicate records according to a hierarchy of what service they received, and another for duplicate services based on date. That works ok. But there can still be some duplicate records (same hierarchy/date), so I then use this query to eliminate records based purely on lowest id. This query, though, can take over 5 minutes to run on a few thousand records.
Is there a faster way to do this? Thanks.

 

Deleting duplicates in Excel -
I have a huge spreadsheet that has several duplicates. How do I write code that will delete the duplicates?


HELPPPPPPP -
I've got a table inside my database. But, the table creates duplicates itself... So, for 1 unique record will duplicates to 2 or 3 records. My question is... How can I delete the duplicates ??? Coz, when I try to delete, even just 1 records of them, all of the same records will


SQL Delete duplicates problem - Access 2K -
This should be easy, but I just can't get it to work right. I have a table that contains records with duplicate phone numbers (data supplied by client). I only want one record per phone number. I can delete duplicates by a hierarchy ranking, but some have the same rank. So next I del


SQL 2000 Duplicates Problem/Question -
I've been handed a project that consist of a Table with Duplicates that can may have as few as 2 and as many as 40+. Ex: tblProducts - Prodname,Category,DateEntered. I need to keep all duplicates that have 3 or less, yet, compare the DateEntered field for the most recent posted d


Faster way to delete duplicates -
I have a table where some records have duplicate values in some fields, basically phone numbers (people get a record for each visit to the clients, who supply this data). I loop through a recordset to delete duplicate records according to a hierarchy of what service they received, and


sorting out duplicates -
hello, I haven't been coding for about three months, as such I am stuck on something, and I hope you can help me... Problem: I am pulling 13 fields from a table, and am putting them in a collection, I would like to weed out the duplicates so that I can load all the non-duplicates in


Removing duplicates -
ok, now you here, How would i go about removing duplicates from a Listbox ? i want to do this when a button is clicked, this is basically because when i parse a particular page the first result duplicates itself, so i want to remove any duplicates... Any help is appreciated !


Get unique from a list of string. -
What is the fastest way to get the uniques from a list of string? Here is a small sample but the actual list can be up to 30k items. I can always sort it first and delete duplicates after but is there a faster way? Example -------- Hello Hi Hello Hi Hellen


Deleting a Database Record -
VB 6 - Enterprise Edition I have 2 tables. One called Tracking, the other called Duplicates. I read the Tracking table looking for duplicates records based upon certain fields. If I find them, I write the original and the duplicate records out to the Duplicates Table. The Dup


Deleting Duplicates from a collection -
Does anyone have any idea how to delete duplicates from a collection. Or even better a way to check to see if the string exists in the collection before adding it. I have been through all the threads on collections and none seem to explain this problem. Thanks


Deleting duplicates in an access database -
I have an Access database which has a name and date as two fields within it. I want to make the two combined as a unique index but first I have to delete any duplicates - does anyone know a quick way to do this in VB?


[2008] Remove Duplicates from listbox + Sort Items in list 0-9 a-z -
I was trying to find examples that show how to remove duplicates + Sort Items in list 0-9 a-z in vb.net 2008. Say if we have 3 items in a list: apple apple videos apple video ^--- none of these are supposed to get deleted since they are not duplicates. but if we have a


Fastest way to delete all rows in MS Access -
I've heard that using TRUNCATE to delete all the rows of a table is faster than using DELETE because TRUNCATE doesn't do logging (but therefore can't be rolled back) while DELETE does do logging (and can be rolled back). I don't care about rolling back, metadata, or anything like that


[2005] Checking File Line By Line For Duplicates -
Hello, I am wanting to add a feature to one of my programs that will check line for line in a text file and see if that string of the line is anywhere else in the whole text file and if so delete it there and continue down the file. I would first make the text file go into a listbox


Delete / Combine Duplicates in Access Table -
The good ole delete duplicates.... So I have an access table that contains duplicates resulting from either mutiple owners of a property or an order report of the owners (see attached excel for the structure of my table). I have already used this code to clean exact duplicate recor


Removing Duplicates From Recordsets -
Hi guys, Does anyone know of an easy way to compare the contents of two recordsets and remove duplicates? I'm aware of the ways to remove duplicates via SQL but was wondering if there's a recordset-related trick or two that I'm missing. Thanks.


conditional deleting duplicates problems -
Hi experts, Fairly complex deletions/duplicates rows issue. Please see the attached sheet - need to add the Q up for the unique P/N value cell remaining after duplicates taken out. Please the attached sheet. Cheers


Faster way to remove duplicates -
This routine does okay if I have a few hundred items in the listview but if I have about 3,000 items, the program hangs and takes forever. Does anyone know a faster way to do this? Private Sub Command1_Click() Dim i As Integer Dim j As Integer With ListView1


listbox's + duplicates... -
Hi, I have two list boxes filled with data (possibly different amounts in each). I want to compare these list boxes for duplicates, if there are duplicates, then leave them, if something is not duplicated anywhere in the second list box, then remove it from the first. How woul


SQL Server duplicate records problem -
Can anyone tell me how to delete a record when it is part of two duplicate records? In other words, I've got a table where some of the records are exactly the same, and I don't want to delete both records from a pair, just one. "Key column information is insufficient or incorrec


Duplicate Threads -
I can't stand it when people post duplicate theads. I can never decide which one one to reply to and get very confused. Moderators should delete duplicate threads and their duplicates and any related duplicates. Members shouldn't reply to duplicate threads and if they do they should


Test for the Gurus! -
Scenario: Need to generate an 8 digit string with numbers and letters in it every millisecond or faster for 5 minutes (NO duplicates) and list it in a text file. ex. 8ji908hy. Who can show code the quickest?


Remove Duplicates From A Listbox -
Hi, Here's an example listbox: Quote: Hello World Hi World Hello World How would I go about removing just one of the "Hello World" entries? And this also needs to work with multiple duplicated text and without me specifying the duplica


ADO v DAO speed -
I've read on different sites that ADO is faster than DAO yet on others they say DAO is faster than ADO. I've always worked with ADO but on converting a DAO project to ADO that i've taken over, i've found ADO to be a lot slower Attached is an example of how importing a CSV fil


Removing Duplicates in Lisbox -
how do i remove duplicates in a listbox??? please give code --- THANK YOU THANK YOU THANK YOU!!!!!


Delete Directory and Subdirectories -
How do I delete a folder and all of its subdirectories even if some of the files in the subdirectories may be in use? I can do it the long way around, ie delete all files then delete the directories, but is there a faster way?


Duplicates error in a field that isn't indexed -
I'm getting the duplicates error, in a field that isn't indexed, and I've even tried indexing and allowing duplicates in that field of the access table. Same error. When you're using bound controls, do you have to manually move the recordset?


Delete Duplicates According to dates -
Hi All, Have a problem. I have a list of 30000+ customers in an excel spreadsheet. The problem is that there are duplicate customers. The spreadsheet contains 3 columns: ID NUMBER NAME START DATE 10000000012 Name26818 30-Aug-06 10000000012 Name2981


Killing duplicates in a text file. -
How do I make it so when a button is clicked, it searches a big textbox and deletes any duplicates it finds, case sensative.


Finding duplicates w/sql -
how does one find duplicates with SQL?


SQL - delete duplicate records -
We use Access to upload data to a MySql database so clients can view results on the web. Sometimes we (I) goof up and the same data is posted twice. I know how to find duplicate data, but is there any way to delete duplicates records, while leaving one copy of each? Thanks.


Delete all the records in a table. -
I know how to step through and delete each record but is there a faster way? Maybe wipe the entire table in a few commands or just one?


find duplicates query wizard -
Hi, I need to write a query to find duplicates on a recordset. I haven't installed on my Access 2000 the find duplicates query wizard. Could you please send me the syntax for it. I need to find all records which are the same in a recordset except the reference number. Thanks a l


[3.0/LINQ] Is LINQ faster -
I have a 100,000 files to process ... but i need to filter the ones that are old before i delete. Do you think it would be faster to use LINQ to query the old files? Your thoughts would be appreciated ...


find duplicates and move to text box -
hi i have a program which loads a file which has a load of words (text1.text) and another (text2.text). sometimes there will be duplicates words. i am looking for some code to find the duplicates and move then to another text box i.e text3.text. any ideas? i will search the foru


listbox help (sorting stuff) -
Have a listbox with a few thousand items. Want to know how to do the following seperate things: Loop through and sort ascending / descending. Loop through and remove all duplicates or move them to another listbox. Loop through and remove all NON duplicates or move them to anoth


duplicates in txtfile / txtbox -
I have a textfile with about 1 000 000 words in it and a lot of them are duplicates. I want to edit it and remove every one that ISNT a duplicate. Can you also help me with the code doing it for a textbox? (I know 1000000 words would probably crash it but I still want to know)


remove duplicates and sort array -
I have a large string array and I need to remove the duplicates and sort the array alphabetically. I know I could do this through a good bit of code and some loops, but I've found more than a few times what I went about coding from scratch was already available in a function. My


Faster Graphics -
Does anyone know what is faster: stretchblt or bitblt ? When actually streatching or manipulating items in streatchblt, it is slower, but if its a straight blit, is one faster than the other? Thanks! -Dale


Anything else faster -
I want to know is there anything else faster then the code I am using to convert a dbase file to an access. What i am doing now is that i am deleting records if a certain conditon is set from the dbase file then converting it to access 97. This is done is a loop I commom SQL statemen