Thank you so much, John.
Thsi is my table.
Name Job_Number
John 109998
Tom 198967
Mary 198967
I want to have a query that adds ID field as follows.
Name Job_Number ID
John 109998 1
Tom 198967 2
Mary 198967 3
The reason why I am doing this is because my table unfortunately does not
have any good primary key.
Then your best bet is to create a new, empty table with fields for FirstName
(Name is a reserved word and will cause problems if used as a fieldname) and
JobNumber; include an Autonumber ID field. Create an Append query selecting
the records from your current table and append the existning records (sorted
however you want it done).
A couple of concerns: you really should have a People table with a unique
PersonID, LastName, FirstName, etc. and any linked table should have just the
PersonID. Names (particularly just first names!) are NOT unique, or stable for
that matter (people do change their names after all). Similarly, you should
have (and perhaps do have) a Jobs table with Job_Number as the primary key.