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

Update Query ?

Status
Not open for further replies.

ShaneBrennan

Programmer
May 19, 1999
198
GB
Okay.

I have an original table called tblResults. I select the records I require and copy them in another table tblTempResults.

I make amendments and additions to tblTempResults and I wish to put this information back into tblResults.

Can anyone help me on this one. Need SQL code.

Thank you in advance for any help

Shane
Shane Brennan
Shane.Brennan@tcat.ac.uk

 
I typically do this sort of thing using an update query. If you need the SQL here is an example assuming you have identical field names in both tables: "Update TblResults INNER JOIN TblTempResults on TblResults.ID = TblTempResults.ID Set TblResults.field1 = [TblTempResults].[Field1], TblResults.Field2 = [TblTempResults].[Field2];"

Paul Faculjak
paul@DataIntegritySolutions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top