I always use this query in sql server to get Row number in a table:
SELECT * FROM (SELECT *, Row_number() OVER(
I might be late. Simply add a new field ID in the table with type AutoNumber. This will generate unique IDs and can utilize in Access too