Ok, I admit it - I'm a complete newbie to Triggers.
I've been trying to do this all day. I've checked through this site as well as others but can't seem to figure it out!! Ok, I have created (using the word loosely!) a trigger on tblQuanityDetail. When a user updates the field "QuanityReceived", I'd like for the trigger to update tblQuanity with the SUM(quanityReceived)where the QtyID = the inserted qtyID. How exactly do I go about this? So far the only thing I have that I think is correct is:
I would truly appreciate any help! Thank you in advance!!
![[dazed] [dazed] [dazed]](/data/assets/smilies/dazed.gif)
Code:
IF UPDATE(QuanityReceived)
BEGIN
UPDATE tblQuanity
SET QtyReceived =