I have the following trigger on a table
CREATE TRIGGER tr_orders_setFY ON [dbo].[orders]
FOR INSERT, UPDATE
AS
UPDATE orders SET fy = dbo.fn_leos_getFY(dtstamp) WHERE fy IS NULL
The problem is when I add a record using RS.AddNew() and retrieve the id of the last record added temp =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.