When I first designed this database several years ago I chose to make my main table’s primary key a hybrid of the year and an autonumber so that it looked like this: 11-1234. This means that its data type had to be Text. Now, in an effort to create a junction table it has come around to bite me.
My questions are:
If I add an autonumber to my main table and make it the primary key how will it affect the 20-30 other tables, queries, forms, reports, that rely on it? And do I have to find and change all of them?
OR
Can I use a composite primary key of a text field and a number field in a junction table and still keep referential integrity somehow?
My goal is that I am trying to allow users to select multiple sites/buildings related to a fraud case so that they can generate reports/graphs that can see the amount of cases happening at a particular building or region.
My questions are:
If I add an autonumber to my main table and make it the primary key how will it affect the 20-30 other tables, queries, forms, reports, that rely on it? And do I have to find and change all of them?
OR
Can I use a composite primary key of a text field and a number field in a junction table and still keep referential integrity somehow?
My goal is that I am trying to allow users to select multiple sites/buildings related to a fraud case so that they can generate reports/graphs that can see the amount of cases happening at a particular building or region.