Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

update query using two tables

Status
Not open for further replies.

waymond

Programmer
Mar 1, 2005
118
US
I have two tables
tblNorthRegion
marketing

I have three fields in tblNorthRegion I would like to update from table marketing they are connected by UstID field.

the fields I would like to update to tblNorthRegion from the marketing table are
streetzip
parentzip
mailzip
into table marketing where the ustid = ustid
 
In the SQL view pane of an update query:
UPDATE tblNorthRegion INNER JOIN marketing
ON tblNorthRegion.ustid = marketing.ustid
SET tblNorthRegion.streetzip = marketing.streetzip
, tblNorthRegion.parentzip = marketing.parentzip
, tblNorthRegion.mailzip = marketing.mailzip

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top