S
Samantha Wright
I am running Access 2002, what I'm trying to achieve is to conditionally
transfer records from tblDetail01 to tblDetail02 subject to a order qty
being greater than a stock quantity and to halt the append and display a
warning box
My very basic insert code goes like this
INSERT INTO Detail02 ( OrderId, ProductID, ProductName, Quantity,
[Select], OrderDate )
SELECT Detail01.OrderId, Detail01.ProductID, Detail01.ProductName,
Detail01.Quantity, Detail01.[Select], Detail01.OrderDate
FROM Detail01
WHERE (((Detail01.[Select])=Yes));
I have an additional field in Detail01 named stock which holds the
updated stock quantity so I could prevent the appending of no good
records by changing the statement but I am lost on how to do this
correctly and either stop the append or give a warning that not all
products have been transferred
I would be grateful for any help
Thanks
transfer records from tblDetail01 to tblDetail02 subject to a order qty
being greater than a stock quantity and to halt the append and display a
warning box
My very basic insert code goes like this
INSERT INTO Detail02 ( OrderId, ProductID, ProductName, Quantity,
[Select], OrderDate )
SELECT Detail01.OrderId, Detail01.ProductID, Detail01.ProductName,
Detail01.Quantity, Detail01.[Select], Detail01.OrderDate
FROM Detail01
WHERE (((Detail01.[Select])=Yes));
I have an additional field in Detail01 named stock which holds the
updated stock quantity so I could prevent the appending of no good
records by changing the statement but I am lost on how to do this
correctly and either stop the append or give a warning that not all
products have been transferred
I would be grateful for any help
Thanks