T
T. Wilson
Here is my table...
EquipmentID
MaintenanceProcedure
DatePerformed
Mileage
Sample Data...
01001 Oil Change 01/01/2004 73142
01001 Lube 01/01/2004 73142
01002 Oil Change 01/03/2004 32114
01001 Tire Rotation 01/14/2004 74567
01001 Oil Change 02/01/2004 76092
01001 Lube 02/01/2004 76092
Assuming that I pass a value of 01001 to the query so that it selects only
records relating to that piece of equipment, I am left with...
01001 Oil Change 01/01/2004 73142
01001 Lube 01/01/2004 73142
01001 Tire Rotation 01/14/2004 74567
01001 Oil Change 02/01/2004 76092
01001 Lube 02/01/2004 76092
What I would like my query to show is the following...
01001 Lube 02/01/2004 76092
01001 Oil Change 02/01/2004 76092
01001 Tire Rotation 01/14/2004 74567
that is, only records relating to EquipmentID 01001, sorted alphabetically
by MaintenanceProcedure, with only the most recent instance of that
procedure displayed.
The article referenced at www.mvps.org/access/queries/qry0020.htm seems to
indicate that this type of thing is trivial, I don't know, I must have been
looking at the problem too long if that is the case. Any help will be
appreciated.
Thanks,
Todd Wilson
EquipmentID
MaintenanceProcedure
DatePerformed
Mileage
Sample Data...
01001 Oil Change 01/01/2004 73142
01001 Lube 01/01/2004 73142
01002 Oil Change 01/03/2004 32114
01001 Tire Rotation 01/14/2004 74567
01001 Oil Change 02/01/2004 76092
01001 Lube 02/01/2004 76092
Assuming that I pass a value of 01001 to the query so that it selects only
records relating to that piece of equipment, I am left with...
01001 Oil Change 01/01/2004 73142
01001 Lube 01/01/2004 73142
01001 Tire Rotation 01/14/2004 74567
01001 Oil Change 02/01/2004 76092
01001 Lube 02/01/2004 76092
What I would like my query to show is the following...
01001 Lube 02/01/2004 76092
01001 Oil Change 02/01/2004 76092
01001 Tire Rotation 01/14/2004 74567
that is, only records relating to EquipmentID 01001, sorted alphabetically
by MaintenanceProcedure, with only the most recent instance of that
procedure displayed.
The article referenced at www.mvps.org/access/queries/qry0020.htm seems to
indicate that this type of thing is trivial, I don't know, I must have been
looking at the problem too long if that is the case. Any help will be
appreciated.
Thanks,
Todd Wilson