Duplicates in Query

  • Thread starter Thread starter Louise
  • Start date Start date
L

Louise

I have a query that pulls from one table, I want to delete records where the
IDENTIFIER field is a duplicate, and there is data in a FROM_TO_PD field, if
there is no information in the FROM_TO_PD field I do not want to delete the
record

I have tried using Where IDENTIFIER = IDENTIFIER and FROM_TO_PD is Not Null,
but it keeps wanting to delete all the records.

Can you help please
 
On my website (www.rogersaccesslibrary.com), is a small Access database
sample called "RemoveDuplicates.mdb" which illustrates how delete uuplicate
records with a query. You would have to add the additional criteria
requirement. You can find the sample here:
http://www.rogersaccesslibrary.com/forum/forum_posts.asp?TID=285

--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L
 
Back
Top