Hey everyone! I have an access database that I want to auto number the records in a query, but restart the number sequence every time the last name changes. For instance here is the table:
Ben Smith Steven Smith Carol Smith Angie Smith Tom Smith Dave Stevens Alex Stevens Nate Richards Brain Richards David Richards
Here is what I want the query to look like when I open it:
Ben Smith 1 Steven Smith 2 Carol Smith 3 Angie Smith 4 Tom Smith 5 Dave Stevens 1 Alex Stevens 2 Nate Richards 1 Brian Richards 2 David Richards 3
So basically I want the query to autonumber every time the last name is the same, but restart every time it changes. I am pulling my hair out trying to find code that will do this. Thanks!