I know a make table creates a new table and i know i can use it. I
have to add data from one table to another. I wasn't sure if an update
query would work. basically there is a table of parts that i need to
add another field to. so rather than type in 10,000 lines of data, i
need to add a field from table B to table A where the parts are the
same. I know i can do it by joining the parts field and doing a make
table. Can i use an append query? I am not sure i can join table A and
table B and then append table A while table A is open in a query
If I understand you correctly, a query cannot add a field to an existing
table, a DML query that is. Of course a DDL query can do so with an ALTER
TABLE statement.
What you can do is add a new column with the correct datatype to the table
(using Table Design or an ALTER TABLE statement), then, once the field is
added to the table, you can use an update query to populate it.
Personally, I would not go to this bother without a good reason. At this
stage of the game, it sounds as if you can create a view with a simple join
between the linked table and the local table, and display the contents of
that field in that manner. That way I would not have to worry about
resynchronizing the data if it changes in the linked table. It hardly ever
makes sense to store the same data in two places.
If you plan for this database to be used in a place that cannot connect to
Db B, then import the table instead of linking to it. When you reconnect,
you can run a routine to either
- delete the data from the imported table and use an Append query to add the
data to it again,
- or drop it and import it again.