I need a quick way to change the corresponding data in Table2 to new values that have come into existence for my Table1. With all that these tables have been through (see below if you want the whole story), the data value for my primary keys in each table was simply set for "number" instead of "autonumber" since there were already values existing during data transfers (exports and imports to and from xls spreadsheets). Of course for my primary key in Table 1, I am not able to change the data type from "number" to "autonumber". This means I need to add a new autonumber field to my first table and make it the primary key instead. This causes problems with the relationship between Table1 and Table2, as Table 2 has hundreds of records, and is related to Table1 by Table1.ID, which I now need to change. I need a quick way to change the corresponding data in Table2.IDforTable1 to the new values for Table1.ID. I thought about using "Find & Replace", but this is time consuming and leaves room for error. Perhaps an update query would work? I have not worked much with this type of query. If anyone has other suggestions, I would greatly appreciate the help. For more background info on how I got to this point, you may read the next portion, but this is not necessary. Thanks again.
This problem stems from having to cleanup someone else's Access "database", which was really just one huge table with a ton of duplicated information. Since the table had thousands of records, I decided to use a table analyzer, and then split the table in the best way I could. The table split uses the "lookup" fields, rather than a number. So I exported the three tables as excel spreadsheets to do some other data cleanup. Exporting the tables to Excel automatically changed the lookup fields to their corresponding ID number. When I imported the Excel spreadsheets back into access, everything worked well, relationships, etc., only I need the primary keys for each table to be Autonumbers, so that the person who uses the database won't have to enter in a primary key value.
This problem stems from having to cleanup someone else's Access "database", which was really just one huge table with a ton of duplicated information. Since the table had thousands of records, I decided to use a table analyzer, and then split the table in the best way I could. The table split uses the "lookup" fields, rather than a number. So I exported the three tables as excel spreadsheets to do some other data cleanup. Exporting the tables to Excel automatically changed the lookup fields to their corresponding ID number. When I imported the Excel spreadsheets back into access, everything worked well, relationships, etc., only I need the primary keys for each table to be Autonumbers, so that the person who uses the database won't have to enter in a primary key value.