A Totals query should do it, Grouped on Name, and probably Last on Count.

Signature
hth
Al Campagna . Candia Computer Consulting . Candia, NH USA
Microsoft Access MVP
http://home.comcast.net/~cccsolutions
"Find a job that you love, and you'll never work a day in your life."
>I have a table:
>
[quoted text clipped - 15 lines]
>
> What is the way? Thanks.
Dirk Goldgar - 16 Mar 2007 19:08 GMT
> A Totals query should do it, Grouped on Name, and probably Last on
> Count.
[quoted text clipped - 17 lines]
>>
>> What is the way? Thanks.
The Last() SQL aggregate function is a very tricky animal. Remember
that the order of records in tables is arbitrary. Gindolfi, do you
really want the "last" record for each NAME, or do you want the one with
the maximum value of COUNT?

Signature
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)