Updating a table

Dowsey1977

Board Regular
Joined
Apr 6, 2004
Messages
185
Hi,

I have 2 tables in a database. In one, 2 of the columns are blank, in the other, the same 2 columns are populated. What I want to be able to do is run a query that will copy all information from the populated table into the same columns on the unpopulated table.

Not all records have these 2 columns populated, so the query will need to match the names in the 2 forms and only update where the names match.

Hopefully clear.

Many thanks in advance,
Simon
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Take a look at using an Update Query (See Action Queries in Access help).

You essentially want to link your two tables in a query, then put criteria on the the blank fields (Is Null), then in the Update To field, enter the name of the column from the other table.
 
Upvote 0

Forum statistics

Threads
1,221,831
Messages
6,162,252
Members
451,757
Latest member
iours

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top