I have a little Access issue I'm hoping that someone here could help me with. You guys have helped me out so much in the past and it has been most appreciated. I have two scenarios that are very similar, but one is slightly different.
Scenario #1: I have a Table named SO COMBINED DATA that has a field named "ORDER NUMBER" that contains duplicates. I need to delete all but one of the duplicates in this table. I do not care which one is left. I have tried to do a UNIQUE records query on this table to no avial. Not all of the fields in the record are duplicates, only the "ORDER NUMBER" field. Does any one have any code or ideas that would accomplish leaving only one of the duplicate records?
Scenario #2: Very similar to scenario #1. I have a table called ASR COMBINED TABLE that has a field named "ASR NUMBER" and one called "ASR VERSION". The "ASR NUMBER" field contains duplicates. But the catch is that now I want to delete all but one of the duplicates and leave the one with the Highest value in the "ASR VERSION" field. Keep in mind that the "ASR VERSION" field may (not always) also contain duplicates. Any ideas?
I currently have a macro written into Excel that will accomplish both of these tasks, but takes entirely too long. I am really needing to speed up the process.
Thanks in advance for your help!
Scenario #1: I have a Table named SO COMBINED DATA that has a field named "ORDER NUMBER" that contains duplicates. I need to delete all but one of the duplicates in this table. I do not care which one is left. I have tried to do a UNIQUE records query on this table to no avial. Not all of the fields in the record are duplicates, only the "ORDER NUMBER" field. Does any one have any code or ideas that would accomplish leaving only one of the duplicate records?
Scenario #2: Very similar to scenario #1. I have a table called ASR COMBINED TABLE that has a field named "ASR NUMBER" and one called "ASR VERSION". The "ASR NUMBER" field contains duplicates. But the catch is that now I want to delete all but one of the duplicates and leave the one with the Highest value in the "ASR VERSION" field. Keep in mind that the "ASR VERSION" field may (not always) also contain duplicates. Any ideas?
I currently have a macro written into Excel that will accomplish both of these tasks, but takes entirely too long. I am really needing to speed up the process.
Thanks in advance for your help!