I’m trying to do a little update query where I only want a number field to increment on one table, if the order number matches in another table. Since the update stored procedure only lets you call one table, I understand that you have to use a TRIGGER function but I don’t understand how to do this. This is what I’m trying to do…
UPDATE T_Print2 INNER JOIN tblCoNumberShipLabel ON T_Print2.CO_NUMBER = tblCoNumberShipLabel.[Company Number]
SET T_Print2.[ShipLabelPrint#] = CASE WHEN IsNull([ShipLabelPrint#]) THEN 1 ELSE [ShipLabelPrint#]+1 END
When I run this, it errors out on the INNER. Any suggestions?