b-ballstyle
Registered User.
- Local time
- Today, 03:22
- Joined
- Jul 11, 2012
- Messages
- 20
I have a table, Cheque Orders Details that has only the basic information (Contract Number, Supplier Name, etc) of the order and with 3 one to many relationship. The 3 relationships are the tables for each production centers, Cheque Orders 0088, Cheque Orders 0091 and Cheque Orders 0097. So for each order, we add the actual order info (Type, Quantity, Cost/M, Date of delivery) in these tables.
For example, for Cheque Orders 0088, we have the Quantity and Cost/M field and to calculate the Payment of the order you do it like that :
[Cheque Orders 0088].[Quantity Received]*[Cheque Orders 0088].[Cost/M]/1000
Im trying to do a query that would calculate all the payments in each order in each of the 3 tables for each Main order details to have a big total of the payment.
So if we have these payments for the order 001 :
Cheque Orders 0088 = 1$
Cheque Orders 0088 = 1$
Cheque Orders 0091 = 1$
Cheque Orders 0097 = 1$
The big total for the order 001 would be 4$
For example, for Cheque Orders 0088, we have the Quantity and Cost/M field and to calculate the Payment of the order you do it like that :
[Cheque Orders 0088].[Quantity Received]*[Cheque Orders 0088].[Cost/M]/1000
Im trying to do a query that would calculate all the payments in each order in each of the 3 tables for each Main order details to have a big total of the payment.
So if we have these payments for the order 001 :
Cheque Orders 0088 = 1$
Cheque Orders 0088 = 1$
Cheque Orders 0091 = 1$
Cheque Orders 0097 = 1$
The big total for the order 001 would be 4$