Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 436
  • Last Modified:

Create Delete Duplicate Macro

I am trying to write a macro in excel, but I would like to do all this in access because I am taking this table from access pasting into excel and trying to delete duplicates by choosing the unique records.  The trouble I am facing is that even when I advance filter for unique records, it does not delete all duplicates.  

I have a table:

Date   ID   Facility
xxx   xx   xxx


I want to find any duplicates in the ID column then delete the entire row where the duplication is found.  Can I do this?
0
Namrac00
Asked:
Namrac00
1 Solution
 
Patrick MatthewsCommented:
Hi Namrac00,

You should develop a query that returns only unique rows, and export that query to Excel.

Regards,

Patrick
0
 
rockiroadsCommented:
tell u what, use the query wizard to produce a find duplicates query

then take that query, nick the WHERE clause from it
and do this

DELETE FROM table ....



0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now