Duplicates - Sorting

  • Thread starter Thread starter Paul Smith
  • Start date Start date
P

Paul Smith

I have some dated date as below:

1/1/2005 125487 ...
2/1/2005 125487 ...
3/1/2005 12846F ...
1/1/2005 1248G ...
4/1/2005 125984 ...
4/1/2005 125984 ...
4/1/2005 125984 ...

I would like to remove all the duplicates, leaving just one instance and
that instances being the latest.

Any help anyone?

PWS
 
The following will create a new table with the MaxDate per whatever the
other field is called.

Select Max([TheDate]), [TheOtherField] INTO NewTable FROM TableName GROUP BY
[TheOtherField]

--
Steve Clark, Access MVP
FMS, Inc.
Call us for all of your Access Development Needs!
1-888-220-6234
(e-mail address removed)
www.fmsinc.com/consulting
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Oldest date 2
Query Help 5
Average 7
Maximum but one less 4
Grouping query help 3
Sorting not working 1
query flat file data for most recent data 3
Retrieve Info from two tables 2

Back
Top