steven
asked on
I have an update trigger that grabs the qty value from inserted, this value is always double what was inserted by the end user?
The update trigger grabs one field, the qty field and inserts into a table created by us. The value is always double what was entered. Please help.
Are you sure you are only inserting one line? Watch out for where it may be inserting multiple lines or where that may happen in the future.
ASKER
I only update the qty and then checked the table only one line is inserted.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
if (Update(qty_ordered))
Begin
insert into PUt_qtychange (conum,coline,udpatedby,qt
select item,
co_num,
co_line,
updatedby,
qty_ordered,
price
from inserted
end