When the form is saved I want to change a record from other table

Hello, I have 2 tables
“statistics” with these columns:
product
last purchase
last quantity

“order_detail” with these columns:
order
product
date
quantity

I want that for each record on the table order_detail make an update for the product on the statistics table updating the date and quantity.

How can I do this?

thank you for your help

0 1 103
1 REPLY 1
Top Labels in this Space