Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Other Forums
 MS Access
 Gathering Group Records in Access

Author  Topic 

edb2003
Yak Posting Veteran

66 Posts

Posted - 2005-07-11 : 15:43:54
Greetings,
I have an access file and would like to gather all duplicate records by account numbers. Is there some sorto of script that can allow me to do this in Access. I have a column with account numbers I want to grab the duplicates and place it in another Access table.

Can anyone tell me how to do this.

I really appreciate your help :)

Thx,
Edb

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-07-12 : 01:13:47
[code]Select accountno, count(*) as counting from yourtable group by accountno
having count(*)>1[/code]
will give you the accountnos with duplicates
Move that result to ohter table


Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -