Robbie said:
I have two tables that are nearly identical, table
1 has 2 fields ISBN10 and ISBN13
table 2 has the same fields, but field ISBN10 in
table 1 is empty.
I'd like to update ISBN10 on table 1 but I don't
know how to do so. each ISBN13 is a unique
number so between table 1 and 2 there is a way
to match them up, I just don't know how.
If the tables are in the same database, then almost certainly, you should
not be storing redundant data in two tables... that is, if ISBN serves as a
foreign key to join the tables in a query, you should use a query and obtain
ISBN10 from table two... removing the field from table 1 entirely.
Relational database design principles aren't just to eliminate duplicate
data, redundant data can (and, likely, eventually WILL) cause
difficult-to-resolve logical issues: in this case, when records in table 1
and table 2 both have the same ISBN13, and should, thus, have the same
ISBN10 values, but do not, which one is the "authoritative source" and which
the error? In RDB terms, this is data "normalization" or "normalized"
data...
If the two tables are in different databases, and this is just a one-time
effort to populate the table in the other database, but the databases will
then not be used together, you can link the tables using Get External Data |
Link, and update the ISBN10 field in table 1 from the corresponding field in
table 2 by converting your Query to an update Query. Then you can delete the
link.
Larry Linson
Microsoft Office Access MVP