Dear Marc,
The app will be used to manage a factory. There are only a few products, which are counted at the end of the every day and input in the [Produção] form ( which feeds two tables{[Produção] and [Entrada x Saídas 360]. This table [Entradas x Saídas] is my Ins/Outs ). I have a [Pedidos] ( commercial )table, which generates the commercial transaction and will be sent to the dispatch sector. Then, the dispatch [Expedição] form will be filled with the below informations:
- Type of product
- Date of production
- Quantity of products being dispatched
This amount will be diminished from the table [Entradas x Saídas 360], which is my in/out.
It doesn’t sound like you’re going that route though. It sounds like you’re trying to update a Real Column, every time a record is saved in the Child table.
Yes, that’s what I’m trying to do. I’ll have a in table , a out table, and a child table that will be both:
-
Summed when goods are input in the Mother table [Classificação] (production)
-
Subtracted when goods are dispatched.
Therefore, here’s the sequence of facts:
100 Goods of type Jumbo are produced at the date of 27/04/2021.
They’re input at the end of the day in the [Classificação] table. This data will not suffer any change whatsoever. When the form is saved, it will automatically change the data of the other table [Entrada e Saída 360], creating a new row with the amount of goods produced in that date. I had a stock of 100 boxes of jumbo.
At the date of 28/04/2021, I had 2 dispatches of 30 boxes of jumbo each. When goods are dispatched , it will inform to the person in charge of this form that we have in stock 100 boxes of jumbo. At this moment, it will create a new row to the dispatches table [Expedição], and will automatically generate an action to subtract from the [Entrada x Saída 360] table.
When the first dispatch occurs, in the second, it will be 70 boxes, due to the first dispatch that is already subtracted. And when the second dispatch occurs, there will be only 40 boxes left.
But you seem to be doing it in a very strange way that I can’t wrap my head around.
Regarding to this, I’m not certain that I’m riding the right path. This is probably not the best way to achieve what I’m trying to do.
Deeply appreciate your attention and help in this case.
Regards;
Fábio