M
MJ
My problem is from a list of records of transactions where I have a number of
duplicates throught out any given month. I have devised a way to sort the
dups out into a separate table (containing ALL of the dups for that month),
grouped and sorted in the order I want to see them as dup. Now I need to
weed out all dups EXCEPT the first one of each different
tblDUPS
FC AT Enc Age AcctBal Hold
* A DUP 4960002 0-30 $1,514.75 BDH
A DUP 4960002 0-30 $1,514.75 BDH
A DUP 4960002 0-30 $1,514.75 IVH
* C DUP 5000000 365+ ($160.48) BDH
C DUP 5000000 365+ ($160.48) No Charges
C DUP 5000000 365+ ($160.48) No Charges
* B DUP 5210002 0-30 $51.14 BDH
B DUP 5210002 0-30 $51.14 BDH
B DUP 5210002 0-30 $51.14 IVH
In the table above, duplicates are define by fields: FC; Enc; Age; &
AcctBal. I want to keep the first occurance (*'d) and I want to delete the
others. The resulting list should look like:
tblDUPS
FC AT Enc Age AcctBal Hold
* A DUP 4960002 0-30 $1,514.75 BDH
* C DUP 5000000 365+ ($160.48) BDH
* B DUP 5210002 0-30 $51.14 BDH
How can I do this efficiently?
Thank you in advance for your insight and assistance.
duplicates throught out any given month. I have devised a way to sort the
dups out into a separate table (containing ALL of the dups for that month),
grouped and sorted in the order I want to see them as dup. Now I need to
weed out all dups EXCEPT the first one of each different
tblDUPS
FC AT Enc Age AcctBal Hold
* A DUP 4960002 0-30 $1,514.75 BDH
A DUP 4960002 0-30 $1,514.75 BDH
A DUP 4960002 0-30 $1,514.75 IVH
* C DUP 5000000 365+ ($160.48) BDH
C DUP 5000000 365+ ($160.48) No Charges
C DUP 5000000 365+ ($160.48) No Charges
* B DUP 5210002 0-30 $51.14 BDH
B DUP 5210002 0-30 $51.14 BDH
B DUP 5210002 0-30 $51.14 IVH
In the table above, duplicates are define by fields: FC; Enc; Age; &
AcctBal. I want to keep the first occurance (*'d) and I want to delete the
others. The resulting list should look like:
tblDUPS
FC AT Enc Age AcctBal Hold
* A DUP 4960002 0-30 $1,514.75 BDH
* C DUP 5000000 365+ ($160.48) BDH
* B DUP 5210002 0-30 $51.14 BDH
How can I do this efficiently?
Thank you in advance for your insight and assistance.