473,385 Members | 1,983 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Finding duplicates without the "Find duplicates" wizard

Hello everyone!

Is out there any way to search for duplicate entries without using the "Find duplicates" option? In the Access 97 installed in my workplace, the Find duplicates option is disabled (don't ask me why) and I think that there are little chances of having it installed. Any wonder of how to overcome this situation without the aforementioned wizard?

Thank you very much in advance

Best regards from Barcelona
Apr 2 '08 #1
5 8209
MindBender77
234 100+
Hello everyone!

Is out there any way to search for duplicate entries without using the "Find duplicates" option? In the Access 97 installed in my workplace, the Find duplicates option is disabled (don't ask me why) and I think that there are little chances of having it installed. Any wonder of how to overcome this situation without the aforementioned wizard?

Thank you very much in advance

Best regards from Barcelona
The find duplicates query is set up in this format: You should be able to modify it for your needs.
Expand|Select|Wrap|Line Numbers
  1. SELECT Table1.Field1, Table1.Field2
  2. FROM Table1
  3. WHERE (((Table1.Field1) In (SELECT [Field1] FROM [Table1] As Tmp GROUP BY [Field1] HAVING Count(*)>1 )))
  4. ORDER BY Table1.Field1;
  5.  
Hope this Helps,
Bender
Apr 2 '08 #2
The find duplicates query is set up in this format: You should be able to modify it for your needs.
Expand|Select|Wrap|Line Numbers
  1. SELECT Table1.Field1, Table1.Field2
  2. FROM Table1
  3. WHERE (((Table1.Field1) In (SELECT [Field1] FROM [Table1] As Tmp GROUP BY [Field1] HAVING Count(*)>1 )))
  4. ORDER BY Table1.Field1;
  5.  
Hope this Helps,
Bender
Bender, first and foremost, thank you very much for your help!
I don't have much idea of SQL language, but this code looks like the one behind a Totals query. Am I right? Anyway, does this code enable Access to discriminate between, say, two Customer Names that, being in fact the same, differ from, say, a single or a couple of characters/numbers? I suspect that with this SQL code, this case would not be detected.
My question is, does the Find duplicates query/wizard discriminate between two records that are very similar, that is, does Access gives you a tip like: "hey, this two records have a 95% or more of similarity. Could they be a duplicate entry?"??. I don't know if this is possible, since, as I stated before, the Find duplicates option is disabled at my 97 Access.

Thank you in advance!!

Best regards
Apr 3 '08 #3
PianoMan64
374 Expert 256MB
Bender, first and foremost, thank you very much for your help!
I don't have much idea of SQL language, but this code looks like the one behind a Totals query. Am I right? Anyway, does this code enable Access to discriminate between, say, two Customer Names that, being in fact the same, differ from, say, a single or a couple of characters/numbers? I suspect that with this SQL code, this case would not be detected.
My question is, does the Find duplicates query/wizard discriminate between two records that are very similar, that is, does Access gives you a tip like: "hey, this two records have a 95% or more of similarity. Could they be a duplicate entry?"??. I don't know if this is possible, since, as I stated before, the Find duplicates option is disabled at my 97 Access.

Thank you in advance!!

Best regards
To answer that question, that answer is No, not out of the box. Not to say that you couldn't develop something that would say that. You could simply do a character by character compare and see how many of them match, and if the total is above a certain amount, you can simply display that record.

If you would like code examples, let me know. It would take a day to develop, but would be will to assist you in that.

Joe P.
Apr 3 '08 #4
MindBender77
234 100+
Bender, first and foremost, thank you very much for your help!
I don't have much idea of SQL language, but this code looks like the one behind a Totals query. Am I right? Anyway, does this code enable Access to discriminate between, say, two Customer Names that, being in fact the same, differ from, say, a single or a couple of characters/numbers? I suspect that with this SQL code, this case would not be detected.
My question is, does the Find duplicates query/wizard discriminate between two records that are very similar, that is, does Access gives you a tip like: "hey, this two records have a 95% or more of similarity. Could they be a duplicate entry?"??. I don't know if this is possible, since, as I stated before, the Find duplicates option is disabled at my 97 Access.

Thank you in advance!!

Best regards
I agree with pianoman. You would have to develop a query to work in the manner that you specified. As for the SQL I provided, this was the SQL produced from a "Find Duplicate" query in a testing database I developed using the wizard. It simply states:

Show field1 and field2 where exact duplicates exist in field1. This example looks at the entire record for matches. Perhaps you could build on to it.

Bender
Apr 3 '08 #5
To answer that question, that answer is No, not out of the box. Not to say that you couldn't develop something that would say that. You could simply do a character by character compare and see how many of them match, and if the total is above a certain amount, you can simply display that record.

If you would like code examples, let me know. It would take a day to develop, but would be will to assist you in that.

Joe P.
Joe:

Thank you very much for your offering. Anyway, this is not a top priority for me right now and I would not want you to spend an entire day on this.
Indeed, thank you very much! I would like to offer some of my knowledge in return but I am afraid my Access knowledge does not go beyond the fundamentals that can be read in the common textbook (like Access The Bible, The Reference and stuff like that). In fact, I am stunned by the knowledge people in here possess!!!

Best regards from Barcelona
Apr 3 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: P | last post by:
Hi, How would one get a list of encodings that can be passed to "".encode() I know base64,utf8,latin,ascii work and these are listed in the encodings and codecs modules, but where can one...
4
by: salem.ganzhorn | last post by:
#include <map> #include <iostream> using namespace std; int main( int argc, const char * argv ) {
2
by: Praveen | last post by:
In the ISPF editor I am using, for a particullar PO Dataset I am getting the result of FIND statement narrowed down to the colums 48-56. i.e. if I give "FIND 'TO' ALL", the result I am getting as...
1
by: Phil | last post by:
Hi. There is probably a very simple explanation for this. I am using the find duplicates wizard, I am asked for the fields that may contain duplcate info. So far so good at this point it functions...
1
by: Phil | last post by:
Hi Daryl. Thanks for you interest. I don't have the SQL, unlesss you mean the SQL behind the query? as to the "re-structuring" The first part of the wizard asks for the fields that may contain...
2
by: Ori :) | last post by:
I am writing an application to retrieve appointments from Outlook, I have the appointment items sorted by "Start" field and now I want to find the first record which's "Start" value is later than...
0
by: Rave | last post by:
This is a long shot, but I thought I'd try it. I am currently using excel as an inventory tool. I currently have a hand-held scanner plugged into a laptop for reading barcodes. Using the "Find and...
9
by: scripteaze | last post by:
Im using mechanize method for retrieving the form so that i may log into it. I need to find a way to get the form name. Its not listed anywhere in the html source.The reason i need to do this is...
0
by: Ornitobase | last post by:
Hello, my form is used to filter data displayed in its subform. The origin of the data of the subform is dynamically generated. The filters work in VBA. The code is inspired by Allen Browne's...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.