update table?

J

Jeff Lane

I have two tables of about 3500 records each.
Table one contains a REG_NO column and an AREA column and is sparsley
populated in the AREA column.
Table two contains a REG_NO column and an AREA column and is fully populated
in the AREA column.
I want to populate the first table AREA column with the data from the second
table AREA column but only the fields that are empty because the second
table is slightly inaccurate.
If I can't populate only the empty fields I can live with the inacurracies,
but I still want to populate the first table from the second.

Help anyone? please?
 
L

Lisa

Create the query with the two tables joined on the common
field REG_NO

Bring the AREA field from the sparsley populated table
into the design grid

Put the following two words into this fields Criteria row
Is Null

Then, change the query type to Update Query - use the
Query menu

Then put the following into the Update To row of the field
[tablenameoffullypopulatedtable].[AREA]

Then run the query - big red explanation point on your
toolbar.

You're done.
Lisa
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top