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

Update from another table

Status
Not open for further replies.

greg1127

Technical User
Aug 5, 2003
8
0
0
AU
Hi,
what is the code to update an entry from another table?

I can get the following to work :
DoCmd.RunSQL "UPDATE tblTest SET Password = 'EXPIRED' WHERE ((tblTest.Order) =[Forms]![frm_Expired_Records]![SelectionTxt])"

That works fine, But Trying to insert Details that are already in a table does not work.
I have tried
"Update tblTest SET Password = tblNew.Password... "

How should i code it?
 
The insert select will not work when there is already information in the table, I need the update clause to overwrite the data.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top