Hi Access Experts,
I know that there are several post in here about RANK functions or RANKING of records. I have viewed and tried several but can not make them work for me. I either get a rank of the same number or a rank in opposite order (lowest to highest).
I have this query result:
Query Name: qryRevenueSummary
Fields:
totalRevenue
Customer Name
Customer Number
Year
I want to be able to rank the TOP 50 REVENUE by largest to smallest.
I created the following query:
SELECT Count(*) AS RNK, *
FROM qryRevenueSummary As A, qryRevenueSummary As B
WHERE A.[TotalRevenue] >= B.[TotalRevenue]
GROUP BY A.[Customer Number], A.[Year]
This is telling me it won't group by * but i did get it to work if I put the field instead - but that brings the numbers smallest to largest.
Please, please help.
Thanks
I know that there are several post in here about RANK functions or RANKING of records. I have viewed and tried several but can not make them work for me. I either get a rank of the same number or a rank in opposite order (lowest to highest).
I have this query result:
Query Name: qryRevenueSummary
Fields:
totalRevenue
Customer Name
Customer Number
Year
I want to be able to rank the TOP 50 REVENUE by largest to smallest.
I created the following query:
SELECT Count(*) AS RNK, *
FROM qryRevenueSummary As A, qryRevenueSummary As B
WHERE A.[TotalRevenue] >= B.[TotalRevenue]
GROUP BY A.[Customer Number], A.[Year]
This is telling me it won't group by * but i did get it to work if I put the field instead - but that brings the numbers smallest to largest.
Please, please help.
Thanks