Solved

How to create a duplicate finder Application

Posted on 2016-09-08
9
93 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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

As freelancing is becoming more and more common in the tech industry, certain obstacles are proving to be a challenge to those who are used to more traditional, structured employment. This article is meant to help identify such obstacles and offer a…
Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

743 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

13 Experts available now in Live!

Get 1:1 Help Now