Hi, I've created a database in Access, and now need to change the primary key in one of the main tables. How can I change this whilst keeping the link between related records?
There are 2 tables: tblDiskInfo, tblTracks. Here are the fields:
tblDiskInfo
- idBarcode
- Title
- Description
tblTracks
- idTrack
- fkDiskBarcode
- TrackNumber
- TrackName
Currently there is a relationship between idBarcode and fkDiskBarcode. What I need to do now is to insert an autonumber field into tblDiskInfo and create a new foreign key field in tblTracks to hold the related disk number.
How can i do this whilst ensuring that the actual disk record data that I've already input and the track record data stay related?
Thanks,
May
There are 2 tables: tblDiskInfo, tblTracks. Here are the fields:
tblDiskInfo
- idBarcode
- Title
- Description
tblTracks
- idTrack
- fkDiskBarcode
- TrackNumber
- TrackName
Currently there is a relationship between idBarcode and fkDiskBarcode. What I need to do now is to insert an autonumber field into tblDiskInfo and create a new foreign key field in tblTracks to hold the related disk number.
How can i do this whilst ensuring that the actual disk record data that I've already input and the track record data stay related?
Thanks,
May