K
kourkoutas
I have three tables, Entries, Jobs and Parts. These three tables are related
with one-to-many relationships, from left to right.
i.e. one entry - many jobs
one job many parts
The parts table include quantity and price as fields. Also, jobs and entries
have a field for total. Additionally, Jobs have Labour as a field as well
(currency).
What I want is to update the Total field in Jobs table with the sum of the
product of Quantity*Price of all the corresponding parts for each job. Then,
I would like the Total field in Entries table to be updated with Labour+Total
of all the jobs that correspond with each entry.
with one-to-many relationships, from left to right.
i.e. one entry - many jobs
one job many parts
The parts table include quantity and price as fields. Also, jobs and entries
have a field for total. Additionally, Jobs have Labour as a field as well
(currency).
What I want is to update the Total field in Jobs table with the sum of the
product of Quantity*Price of all the corresponding parts for each job. Then,
I would like the Total field in Entries table to be updated with Labour+Total
of all the jobs that correspond with each entry.