Not only am I new to A-2003 but also to database and terminlogy.
the database has several tables that do not have a primary key. I am adding
some new tables which will have a primary key. The inherited main table needs
a primary key added to it.
Phil Hogle
dcc15's advice is a good place to start, if the table has a field (or a
combination of fields) which are a good "candidate key". The criteria for a
candidate key is that the field must be unique - every record in the table has
a different value for that field; it should be stable - not something that
will be frequently edited; and (ideally, but not critically) it should be
short (a 255-byte text field can be a primary key but your table's indexes
will be larger and less efficient).
If you have no such candidate key, then you can create a new table by copying
this table, design mode only, to a new table; open the new table in design
view and add a new Autonumber field and make it the primary key. Then run an
Append query to copy the data from your existing table into the new one. Be
aware that this autonumber will make every record unique, even if there are
duplicate records in the other fields - you'll need some way to identify and
prevent such duplicates.
John W. Vinson [MVP]