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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update Query on Two Linked Tables

Status
Not open for further replies.

kammsba

MIS
Apr 9, 2003
3
US
Table dbo_Client and Table History are linked (one to many) with dbo_Client.ClientHistoryID=History.Member_ID

I have created a empty field in History called DistrictNameID. I want dbo_Client.SchoolDistrictNameID to copy into (update) History.DistrictNameID, but only in those records where dbo_Client.ClientHistoryID > 1.

Can this be done?

Thanks for your help!
 
kam: open up the SQL and just add a WHERE statement.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top