Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / April 2008

Tip: Looking for answers? Try searching our database.

Retieve last dates in a query

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Frikkie - 23 Apr 2008 19:22 GMT
How do i get the last dates out of a table in a query
My query looks like this
Station Code and set number    Date off inspection
CNC 18                                  10/11/2005
CNC 18                                   23/02/2006  1
CNC 19                           24/07/2006
CNC 19                                   24/01/2007   2
CNC 20                                    07/02/2008   3
CNC 20                              16/07/2007

I want to see the dates of no 1 ,2 and 3 in my Query
can you help me please
Thanks
Signature

FM

Jeff Boyce - 23 Apr 2008 19:34 GMT
(caution: untested)

One way might be to create a new query based on this table, select the
[StationCode] and [InspectionDate] fields, then click the <Totals> button on
the Toolbar.

The words "Group By" will show up under each field.  Change this to "Max"
for the [InspectionDate] field.

This should group all [StationCode] values together, selecting the maximum
[InspectionDate] for each.

Regards

Jeff Boyce
Microsoft Office/Access MVP

> How do i get the last dates out of a table in a query
> My query looks like this
[quoted text clipped - 9 lines]
> can you help me please
> Thanks
Frikkie - 24 Apr 2008 17:20 GMT
Thanks Jeff
Signature

FM

> (caution: untested)
>
[quoted text clipped - 26 lines]
> > can you help me please
> > Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.