Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

select query to show greatest dates

Status
Not open for further replies.

ausmoran

MIS
Apr 8, 2001
157
US
I have a table in which I have records with the following fields: BoardNumber, ListingDate

Each BoardNumber has numerous records with different listing dates. I am trying to figure out how to develop a query that selects only the most recent LISTINGDATE for each BoardNumber. Is there an easy way to do this?

Thanks in advance!

Austin
 
Something like this:

SELECT Max(tblYourTableName.ListingDate) AS MaxOfListingDate, tblYourTableName.BoardNumber
FROM tblChecks
GROUP BY tblYourTableName.BoardNumber;

There's also a "DMax" function, see Help for details.

TomCologne
 
Select BoardNumber, Max(ListingDate) as GreatestDate
FROM tblBoardListings
GROUP BY BoardNumber;

Duane
MS Access MVP
Find out how to get great answers faq219-2884.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top