Abhijeet_Chib
New Member
- Joined
- Feb 27, 2014
- Messages
- 1
Hello
I have a database with a lot of records and each record has 5 fields namely INVOICE NUMBER, DATE, AMOUNT, SHIPMENT NUMBER and QUANTITY.
How do i write a Macro that searches for duplicates. The way to searching duplicates is that if any three fields of the record match then the record is highlighted in a separate colour. The matching fields are not specified, they can be any three fields.
For example, if INVOICE NUMBER, SHIPMENT NUMBER and QUANTITY match in some records then its shown as duplicates and highlighted. Similarly if INVOICE NUMBER, QUANTITY and DATE matches in a few records then they are listed as duplicates as well.
So in the database, out of the 5 fields if any 3 match then they are listed as duplicates and highlighted in a different colour.
Can anyone please help me write a Macro that does that.
Cheers !!
Abhii
I have a database with a lot of records and each record has 5 fields namely INVOICE NUMBER, DATE, AMOUNT, SHIPMENT NUMBER and QUANTITY.
How do i write a Macro that searches for duplicates. The way to searching duplicates is that if any three fields of the record match then the record is highlighted in a separate colour. The matching fields are not specified, they can be any three fields.
For example, if INVOICE NUMBER, SHIPMENT NUMBER and QUANTITY match in some records then its shown as duplicates and highlighted. Similarly if INVOICE NUMBER, QUANTITY and DATE matches in a few records then they are listed as duplicates as well.
So in the database, out of the 5 fields if any 3 match then they are listed as duplicates and highlighted in a different colour.
Can anyone please help me write a Macro that does that.
Cheers !!
Abhii