I assume your table name is inventory:
SELECT DCOUNT("[Description]","[inventory]","[Description]<='" & [Description] & "'") AS rank, inventory.* FROM inventory ORDER BY [Description]
The DCOUNT function counts the number of rows that meet the specified criteria. In this case, we count the number of lines that are less than the current one. Everything will work if the column you are using has unique values.
Tarik source share