Delete duplicates only

marisol2

New Member
Joined
Nov 25, 2002
Messages
2
I want to know how to delete duplicates only, but I want to keep the first record. For example:

Cat
Cat
Cat

I want the table/query to only keep 1 cat and delete the other records.

When I use the delete duplicates wizard it deletes all duplicates.
This message was edited by marisol2 on 2002-11-26 23:52
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Try here:

http://www.rogersaccesslibrary.com/download.asp?SampleName='RemoveDuplicates.mdb'
 
Upvote 0
Hi,

To show no duplicates in your query, right click on the grey area just outside the area where you put your tables when the query is in design view. Select Properties and set Unique Records to 'True'.

If you need your data in this form in a table, change the query type to a make table query, and make a table out unique records.

Unique records will look for unique records from the source table, if you need unique records from just the data in the dynaset, use unique values='true' instead of unique
records.

edit:
I must have been half comotose when I wrote this cause it was chop full-o-mistakes. Of course, I guess someone would have to read it to know that...

HTH,
_________________<EMBED width="118" height="52" src="http://corticus.biz.ly/CorticusLink.swf"></EMBED>
This message was edited by corticus on 2002-12-01 00:33
 
Upvote 0

Forum statistics

Threads
1,221,489
Messages
6,160,131
Members
451,621
Latest member
roccanet

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top