Sorry for the cryptic subject line, but here's what I'm looking for...
I'd like to populate a "total_cost" field within a table called "Orders" by summing the product of the "Qty" field of a table called "Order_Line_Detail" with the "cost" field of a table called "Products". Here's a summary of my tables...
Orders (table)
- Orderno (PK)
- total_cost
Order_Line_Detail (table)
- Detailno (PK)
- Orderno (linked to Orders.Orderno)
- Qty
- Productno (linked to Products.Productno)
Products (table)
- Productno (PK)
- Cost
Again, I'd like "Orders.total_cost" to work out to be equal to (in english): For each "Orders.Orderno" figure out what "Orders.total_cost" by summing the product of "Order_Line_Detail.Qty" and "Products.Cost".
This may be simple, but being new to Access, I can't seem to find an answer.
Thanks in advance.
I'd like to populate a "total_cost" field within a table called "Orders" by summing the product of the "Qty" field of a table called "Order_Line_Detail" with the "cost" field of a table called "Products". Here's a summary of my tables...
Orders (table)
- Orderno (PK)
- total_cost
Order_Line_Detail (table)
- Detailno (PK)
- Orderno (linked to Orders.Orderno)
- Qty
- Productno (linked to Products.Productno)
Products (table)
- Productno (PK)
- Cost
Again, I'd like "Orders.total_cost" to work out to be equal to (in english): For each "Orders.Orderno" figure out what "Orders.total_cost" by summing the product of "Order_Line_Detail.Qty" and "Products.Cost".
This may be simple, but being new to Access, I can't seem to find an answer.
Thanks in advance.