My raw data contains many fields, including fields A, B, C and D.
I ran queries to create two new tables: the A-B table and the B-C table.
I took the duplicates out of the A-B table and added an autonumber field, so now each unique A-B combination has a number. This will of course become the key field for the A-B table.
But now I want to add the unique A-B key field to the C-D table as a foreign key. After all, each C-D combination is connected to an A-B combination... but only back in the original raw data.
I am not sure how to do this. Most tutorials I read about Access seem to assume that the user is starting with a blank slate and building the database up one table at a time. But in my case, I am always starting with one giant table from outside Access, and breaking it up. But once I've broken it up, I have trouble getting the new tables to link together properly. The relationships all exist, but they only exist in the original giant table.
Thanks for your help and patience!
I ran queries to create two new tables: the A-B table and the B-C table.
I took the duplicates out of the A-B table and added an autonumber field, so now each unique A-B combination has a number. This will of course become the key field for the A-B table.
But now I want to add the unique A-B key field to the C-D table as a foreign key. After all, each C-D combination is connected to an A-B combination... but only back in the original raw data.
I am not sure how to do this. Most tutorials I read about Access seem to assume that the user is starting with a blank slate and building the database up one table at a time. But in my case, I am always starting with one giant table from outside Access, and breaking it up. But once I've broken it up, I have trouble getting the new tables to link together properly. The relationships all exist, but they only exist in the original giant table.
Thanks for your help and patience!