Exclude Duplicate records from Import

  • Thread starter Thread starter loscherland
  • Start date Start date
L

loscherland

I'm running a database query in excel to import data from an acces
database to exel

Some of the records are duplicated 3, 4 & 5 times in the database. I
there any way of excluding these duplicate records when importing? i.e
just importing the first of every duplicate record?

Example of Row fields in data base are as follows:

BRANCH CODE; PHONE NO; DATE; NAME; REQUEST DAT
A224 555-424 01/01/04 Jim 10/01/04
A224 555-424 01/01/04 Jim 17/01/04
A233 444-333 03/01/04 Bob 12/01/04

2nd record in example above is a duplicate - Everything is same excep
Request date - This is the only field that will differ from the firs
record - All other data is the same.

Is there any way of excluding these records? - i.e. IF Phone No is sam
as phone no previously requested, then do no import
 
Hi
I would set-up a specific query in MS Access to filter out duplicates.
One way could be (not tested though)

- Group the query for the first 4 columns.
- use the MIN grouping function on the 4th column

This should filter out the duplicates in your example. Now use this MS
Access query for importing your data to Excel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top