Subtract quantity from one table to another May 30, 2020, 01:22:03 AM Hello everyone!A query, it is possible in an inventory table, to have a preloaded item quantity. In another, when taking an amount, subtract from the table where X amount was charged? I was testing shapes but I can't find any. I ran this in asp with a procedure. But, here I am a little lost. Quote Selected
Re: Subtract quantity from one table to another Reply #1 – May 31, 2020, 08:36:20 PM Quote from: ddiaz2380 – May 30, 2020, 01:22:03 AMHello everyone!A query, it is possible in an inventory table, to have a preloaded item quantity. In another, when taking an amount, subtract from the table where X amount was charged? I was testing shapes but I can't find any. I ran this in asp with a procedure. But, here I am a little lost.As an example, an inventory table, where I have quantity of the product in stock 300. A sales table, where I put the quantity to sell 50. How can I subtract 50 from the stock table automatically? I was testing with action before add and action after add. But I did not have good results, any suggestions or help? Thank you!!! Quote Selected
Re: Subtract quantity from one table to another Reply #2 – June 01, 2020, 07:16:04 PM @ddiaz2380 Action Before Add and Action After Add is the best way of achieving what you are trying to do. Quote Selected
Re: Subtract quantity from one table to another Reply #3 – June 05, 2020, 10:39:34 PM Quote from: willvin – June 01, 2020, 07:16:04 PM@ddiaz2380 Action Before Add and Action After Add is the best way of achieving what you are trying to do.Hi @willvin I tried to use that function, but without success, could you be so kind as to give me a little example please? Thank you!! Quote Selected Last Edit: June 05, 2020, 10:41:07 PM by ddiaz2380
Re: Subtract quantity from one table to another Reply #4 – June 06, 2020, 07:15:56 AM I can only give an example to this when I see how you project is structured. Quote Selected