Update Field with value from another Table

  • Thread starter Thread starter DJJ
  • Start date Start date
D

DJJ

How to I update a description text field on a form with the description from
another table based on an Item Number selected from a combo list? The two
tables are joined on the Item Number. I tried to an update query in the
after-update event on the combo box but it does not work.

CurrentDb.Execute "UPDATE tblMetalUsage LEFT JOIN tblWireTubingSheet" _
& " ON tblMetalUsage.ItemNo = tblWireTubingSheet.ItemNo" _
& " SET tblMetalUsage.Description = [tblWireTubingSheet]![WireDesc]" _
& " WHERE '" & Me.cmbItemNo.Value & "' = [tblWireTubingSheet]![ItemNo]"

This query works fine as a standalone query.

Thanks...

DJ
 
Back
Top