Question : extract max value with adjacent column data

I have a query that returns the life cycle of a particular model range of vehicle.
MODEL RANGE      Life Cycle      Total vehicles
5 SERIES                            0                       2
5 SERIES                            1                      10
5 SERIES                            2                       32
5 SERIES                            3                       38
5 SERIES                       4                             22
5 SERIES                       5                               70
5 SERIES                       6                               16
5 SERIES                            7                        51
5 SERIES                       8                                25
5 SERIES                          9                        15
5 SERIES                          10                         1

So here the 5 series BMW has 70 vehicles (max total vehicle count) with a 5 year production cycle.

I cannot figure out how to extract the max in this case 70 along with the year so in a new query i want one line  so i can get the life cycles for each model range.
5 SERIES                       5                               70

i am working in access 2007 query grid in this example the query has been restricted to the 5 series i will take that out later.
1:
2:
3:
4:
SELECT QryDateDifModels.[MODEL RANGE], QryDateDifModels.Expr1 AS [Life Cycle], Count(QryDateDifModels.Expr1) AS [Total vehicles]
FROM QryDateDifModels
GROUP BY QryDateDifModels.[MODEL RANGE], QryDateDifModels.Expr1
HAVING (((QryDateDifModels.[MODEL RANGE]) Like "5 SERIES"));
Related Solutions: return max for each group

Answer : extract max value with adjacent column data

select [MODEL RANGE],[Life Cycle],[Total vehicles] from QryDateDifModels where [Total vehicles] = (select max([Total vehicles]) from QryDateDifModels)
Random Solutions  
 
programming4us programming4us