If you pull from a single table/query, here's my suggestion:
Add an autonumber field to your table, forcing it to be unique.
Add the ability to re-update that autonumber field in case records get deleted, resulting in some numbers no longer existing in your table.
After that, refer to your...