Solved

How to create a duplicate finder Application

Posted on 2016-09-08
9
113 Views
Last Modified: 2016-09-25
We have huge data which consists of 50-60 thousand rows and we receive about 600 to 700 rows of information everyday (excel)

What I am looking for is
1: when the daily data is received if i upload the current data to access or the application it should provide the combination of duplicates as mentioned below in different tabs
2: Able to customize the combinations
3: click on delete button of the combination to be able to delete specific rows from the master data

Customer Name (C)
Customer Number (N)
Invoice Amount (A)
Invoice Number (I)
Invoice Date (D)

some of the experts might have already done this, but I have never got an opportunity to work with access
MOCK_DATA.xlsx
0
Comment
Question by:Nirvana
9 Comments
 
LVL 17

Expert Comment

by:xtermie
ID: 41789155
Perhaps, you can use Excel's remove duplicates prior to importing to access
Open your file in Excel
  1. Click on Data tab
  2. In the Data tools, click Remove Duplicates
  3. Select all columns
  4. Click on Remove Duplicates Button

Not sure of what (2) and (3) means.  Can you please explain a bit more with an example?
0
 

Author Comment

by:Nirvana
ID: 41789300
Number 2 mean I should be able customize the combinations from the columns available for duplicates

attaching a sample view of the interface that I am looking for
sample.pptx
0
 
LVL 47

Expert Comment

by:Dale Fye (Access MVP)
ID: 41789667
Generally, when I import from Excel, I start by linking the Excel file to my database.  Then I import the data from the Excel file into a staging table which contains all of the fields I need from Excel, plus other fields that I use for my error checking process.

Then I run a series of queries that make sure that fields are not duplicates (if they are, I use these additional fields to annotate errors.  These errors might be duplicates based on a single field or multiple fields.  They also might be based on a column which requires a value that exists in a lookup field and does not match any of those values.  

I generally display these records in a form for the user to review and correct or mark mark them for import.  Then, once that process is complete, I import the acceptable records into my production table.  I find that it is easier to prevent these duplicates from the start than it is to import into the production table and then have to find them.
1
 

Author Comment

by:Nirvana
ID: 41790057
Thanks Dale.I will follow the steps and see the fact is I have never worked in access so it might take a little time. And how can I create a user interface for end user
0
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 
LVL 47

Expert Comment

by:Dale Fye (Access MVP)
ID: 41790299
Where are you storing your data, Access?
1
 

Author Comment

by:Nirvana
ID: 41790636
Excel. I have my data in excel and then will be uploaded or imported to access
0
 
LVL 47

Accepted Solution

by:
Dale Fye (Access MVP) earned 500 total points
ID: 41808484
Nirvana,

Are you still working on this?

If so, the first step is to create a process which will link a file you select (ideally it would have the same file name and path each day). into your database.  The code might look something like:

Private sub cmd_Link_Excel_Click

     docmd.transferspreadsheet acLink, acSpreadsheetTypeExcel12, "ExcelLinked", _
                  "C:\yourpath\yourfilename.xlsx", true, "Sheet1$"

End Sub

This would link "Sheet1" (dont for get to add the $ after the worksheet name) from your file into your Access database.  You could add some code before that to select the file manually if you wanted to,  to do that, search on "vba file dialog" here in EE for code sample.
1
 
LVL 45

Expert Comment

by:aikimark
ID: 41808521
The easiest way to eliminate duplicates is to put a unique index on your destination table.  When you append your rows, any duplicates will not be inserted.
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Meetings to discuss business process can waste time, and often do .  The meeting's dialog can get confusing when participants have different professional perspectives and backgrounds.  A jointly-developed process picture helps wade through the confu…
Companies keep a much closer eye on costs today, so changing to new Technology – Microsoft Office 365 is the smartest move to take.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now