Originally Posted by
ranman256
you cannot SUM and update in the same query(s).
you cannot update a table with certain joins.
I usu write my updates to a temp table, then update the main data from the temp table. (2 queries)
Thanks for the suggestion, I'll bare that in mind if I get stuck in the future but I managed to make it work by adding DISTINCTROW to the code
Code:
UPDATE DISTINCTROW tblProduct INNER JOIN dbo_stockm_View ON tblProduct.product = dbo_stockm_View.product SET tblProduct.allocated_bin_1 = Null
WHERE ((dbo_stockm_View.bin_number)="DISCITEM"));