I am in Access 2010 and am trying to create a rank or row number field for a query which is ordered in a specific way. I have tried Rank: DCount("id","[Query1]","id <= " & [id]) but it ignores my Query’s sort, since the order is NOT as the ID Primary Key.
I am in Access 2010 and am trying to create a rank or row
Share
I’ve seen your sorting logic and it seems that I managed to produce a rank based upon it, by creating an additional query (Temp), with a column containing all the sorting function subproducts concatenated in it. The code for this query should look like this:
After that, if you create a query over this additional one, and use the
DCountfunction with the ‘OrderCode1’ column on theWHEREparameter, you should get a sequential rank. Something like this:If you are still needing a solution for this, you can check if it works!