Hi Guys
I'm trying to get this Update query to work, but it fails with the addition of the second parameter in the 'Where' clause
DoCmd.RunSQL "UPDATE Tb_DistinctReceipts SET Tb_DistinctReceipts.TotalQTY = '" & POsum & "'WHERE PurchaseOrder = " & PO & " AND Where LineItem = " & Line & ";"
Could someone please help me with the syntax? Many thanks
I'm trying to get this Update query to work, but it fails with the addition of the second parameter in the 'Where' clause
DoCmd.RunSQL "UPDATE Tb_DistinctReceipts SET Tb_DistinctReceipts.TotalQTY = '" & POsum & "'WHERE PurchaseOrder = " & PO & " AND Where LineItem = " & Line & ";"
Could someone please help me with the syntax? Many thanks
Last edited: