Presumably this got the data into the basic format:
https://www.accessforums.net/queries...03-a-9425.html
except for the repeating names. The simplest way to get what you want from there is on a report. You can either use Sorting and Grouping to get a single instance of each name, or use the Hide Duplicates property of the textbox containing the name.
The numbering would be fairly simple using the first method, with a textbox that had a control source of:
=1
and its running sum property set to over all.