Link to home
Start Free TrialLog in
Avatar of bemara57
bemara57

asked on

How do I separate duplicates to a separate table?

I am trying to take all records that have a duplicate in a particular column and put them in a separate table. Is this possible? Please help with any ideas. Thanks.
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

Do you mean you are moving the entire record to another table? You can do using several methods; for example, you can use a SQL Insert command:

Currentdb.Exectue "INSERT INTO SomeTable(Col1, Col2, Col3) VALUES(SELECT Val1, Val2, Val3 FROM AnotherTable WHERE YourColumn=YourDuplicateValue)"

ASKER CERTIFIED SOLUTION
Avatar of DoubleJ92
DoubleJ92

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bemara57
bemara57

ASKER

Wow DoubleJ92, that built in feature is off the chain! Pls excuse the slang, I'm just excited b/c that just saved me hours of work. Thanks!
No problem. Glad I could help :)