Hi All.
I have taken over a database and I have come across an issue with one table and its primary key that I don't understand.
We have a table called [Import Equipment] that stores information about all of the equipment that we own. Each piece of equipment is given a unique [Code No], and we put a label on each piece of equipment with this number as well as a barcode relating to this number on the label.
However the table does not use the [Code No] as its primary key. Instead it uses a number called [EquipID] as its primary key, which is an autonumber.
Is this common or can someone understand why this may be?
As the [Code No] is the number that we use to identify something, and never the [EquipID] number, it has become an issue in a few queries that I want to create. I want to create a new table with [Code No] in it, and then create a query to pull information about this [Code No] from the [Import Equipment] table. But as it's not the primary key, it doesn't seem to pull the information from the table properly.
Thanks
I have taken over a database and I have come across an issue with one table and its primary key that I don't understand.
We have a table called [Import Equipment] that stores information about all of the equipment that we own. Each piece of equipment is given a unique [Code No], and we put a label on each piece of equipment with this number as well as a barcode relating to this number on the label.
However the table does not use the [Code No] as its primary key. Instead it uses a number called [EquipID] as its primary key, which is an autonumber.
Is this common or can someone understand why this may be?
As the [Code No] is the number that we use to identify something, and never the [EquipID] number, it has become an issue in a few queries that I want to create. I want to create a new table with [Code No] in it, and then create a query to pull information about this [Code No] from the [Import Equipment] table. But as it's not the primary key, it doesn't seem to pull the information from the table properly.
Thanks