CREATE TRIGGER dbo.AccountingRepTrigger1 ON dbo.AccountingRep
FOR UPDATE AS
IF Update(amtUpdated)
begin
declare @a1 float
declare @a2 float
select @a1=(select amtUpdated from Inserted)
select @a2=(select amtUpdated from deleted)
update accountingRep
set balance=balance + @a1 - @a2
where tableCode=(select tableCode from deleted)
and tableNo=(select tableNo from deleted)
end
hope it can help!