I am trying to combine two different sets of related tables into one. Is this possible? In a 97 Access Database I have the following tables.
HSInst
HSCont
HSSupply
COLInst
COLCont
COLSupply
Each table PK is an AutoNumber field. The HSCont table contains the HSInstCode, the HSSupply table contains the HSContCode. They are all related with a one to many relationship with the Referential Integrity set up to cascade update in the old database.
In a new Access 2000 database, I am trying to combine these two sets of tables into one Institution table so that instead of six tables, I only have three; Inst, Cont, and Supply. Is this possible?
The problem that I am running into (currently) is that because the PK is an AutoNumber, I can't update it. If I change it to a number field, I can't get the changes to cascade to the related tables. Also, afer they are combined, new records will need to be added and then a new unique number is no longer generated.
If I try to combine them now, I have two sets of numbers in what would have been that PK. With two sets of each, they can't be a PK and I can't relate tables based on the old numbers. If I add a new AutoNumber field, the tables don't relate to each other anymore.
I have searched the archives for some insight, but couldn't find anything. Is what I am trying to do possible? I am pretty new at this so I am not sure if my logic is flawed, or if I just don't have the knowledge. Any suggestions?
Thanks so much in advance for your insight!
HSInst
HSCont
HSSupply
COLInst
COLCont
COLSupply
Each table PK is an AutoNumber field. The HSCont table contains the HSInstCode, the HSSupply table contains the HSContCode. They are all related with a one to many relationship with the Referential Integrity set up to cascade update in the old database.
In a new Access 2000 database, I am trying to combine these two sets of tables into one Institution table so that instead of six tables, I only have three; Inst, Cont, and Supply. Is this possible?
The problem that I am running into (currently) is that because the PK is an AutoNumber, I can't update it. If I change it to a number field, I can't get the changes to cascade to the related tables. Also, afer they are combined, new records will need to be added and then a new unique number is no longer generated.
If I try to combine them now, I have two sets of numbers in what would have been that PK. With two sets of each, they can't be a PK and I can't relate tables based on the old numbers. If I add a new AutoNumber field, the tables don't relate to each other anymore.
I have searched the archives for some insight, but couldn't find anything. Is what I am trying to do possible? I am pretty new at this so I am not sure if my logic is flawed, or if I just don't have the knowledge. Any suggestions?
Thanks so much in advance for your insight!