Libre
been around a little
- Local time
- Today, 11:02
- Joined
- May 3, 2007
- Messages
- 681
Sorry if this has been asked before, and thank you for any help.
Now that the apologies and gratitude is out of the way, please help me solve this problem if you can.
I have a large table with many fields and many rows. There is no primary key. I'll call one field ParentPN, and another field ChildPN. There are many other fields as well.
I want to identify all rows where BOTH the ParentPN and ChildPN occur more than once.
I know how to create a query to identify duplicates of ONE field in the table, but not two.
I can solve this with VBA: I will read the two fields of interest in the first row, then compare both values with every other row. If it finds another row with BOTH ParentPN and ChildPN identical with the first, that's a "hit". Then, repeat with all the other rows.
I could find ways to make this run faster, but I was wondering if there are any build in functions to accomplish this. I looked at the Find Duplicates query builder, and all I see is I can select ONE field to search for dupes, not two.
So, any ideas?
Now that the apologies and gratitude is out of the way, please help me solve this problem if you can.
I have a large table with many fields and many rows. There is no primary key. I'll call one field ParentPN, and another field ChildPN. There are many other fields as well.
I want to identify all rows where BOTH the ParentPN and ChildPN occur more than once.
I know how to create a query to identify duplicates of ONE field in the table, but not two.
I can solve this with VBA: I will read the two fields of interest in the first row, then compare both values with every other row. If it finds another row with BOTH ParentPN and ChildPN identical with the first, that's a "hit". Then, repeat with all the other rows.
I could find ways to make this run faster, but I was wondering if there are any build in functions to accomplish this. I looked at the Find Duplicates query builder, and all I see is I can select ONE field to search for dupes, not two.
So, any ideas?