Add/Edit/Delete the same record in two tables at the same time

Hi guys
I'm trying to create/modify/delete the same record in two tables at the same time.
This is a sales invoice + movements of the products

Example I have these tables:
................................................
Table "OrderHeader"
Fields "OrderHeaderID, Date, CustomerID"
Here it is kept well

Table "OrderDetail"
Fields "OrderDetailID, OrderHeaderID, ProductID, Qty, Price"
Here it is kept well

Table "Movements"
Fields "MovementID, ProductID, ProductName, Stock, Price"
But in this table I don't know how to do it

regards

0 4 188
4 REPLIES 4

Schauen Sie folgendes Videos, dort wird dies gut erklรคrt:Datensรคtze in eine andere Tabelle automatisch kopieren   

Thank you

It already works, at least the copy

Now I am faced with a detail is that if I modify the sales quantities, when I save it creates another new record in the Movements table, and it should only update

That's why it said, How do you add, edit and delete the same record in two tables at the same time?

Untitled-1.jpg

โ€ƒ

Hello, any help, I have no idea how to solve this situation,
How to make it allow me to add, edit and delete the corresponding files of the sales invoice in the table of movements?

Wenn Sie das Endziel ihrer App verraten wรผrden, z.B. Rechnung erstellen, Inventarverwaltung, Berichte usw. und mit welchem Formular die Eingabe erfolgt, wรคre es viel leichter die richtigen Lรถsungen fรผr Sie zu formulieren.

ร„hnliche Apps verwenden eine Statusspalte, um dieses zu erreichen:

Alle untergeordneten Datensรคtze, wenn der รผbergeordnete Datensatz aktualisiert wird 

Sie kรถnnten natรผrlich auch eine neue Aktion auf die Bewegungstabelle erstellen und diese dann in eine gruppierte Aktion integrieren.

Top Labels in this Space