Running an update query with two linked tables

Dankniseley

New Member
Joined
Mar 23, 2003
Messages
33
Hi All,

I was wondering if it is possible to do the following or if there is another way to do what I am describing.

I have a master table with the following fields:
ID
Vendor
Part number
unit Cost
New Unit Cost --> which is blank
Lead tim
New Lead time--> which is balnk

I also have a responce table which has the same data fields but is only a very small subset of the mater table.


Each week I want to copy the response from the responce table to the Master table


I am joining on ID and want to update the master table with New Unit Cost and New lead time from the Response table.

I am using the join to only update value that I have recieved a response for.


Any Ideas?
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Try something like this

UPDATE [Master Table] RIGHT JOIN [Response Table] ON [Master Table].ID = [Response Table].ID SET [Master Table].[New Unit Cost] = [Response Table]![New Unit Cost], [Master Table].[New Lead Time] = [Response Table]![New Lead Time];
 
Upvote 0

Forum statistics

Threads
1,221,713
Messages
6,161,463
Members
451,708
Latest member
PedroMoss2268

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