Erm.... hi,
Can anyone tell me how to code this thingy?
I used 2 different sub-form so it is quite troublesome. I have done something but it only works when ID is enter in both sub-form. ID is an unique key to identify products. If 1 sub-form is left out then it will not calculate.
I want to sum the [Order Quantity] from table [Details] minus Sum of [Quantity Receive] in table [Details2]
Balance: Sum([Details]![Order_Qty] - [Details2]![QTY Receive]) /*It is to calculate the balance*/
Can anyone tell me how to code this thingy?
I used 2 different sub-form so it is quite troublesome. I have done something but it only works when ID is enter in both sub-form. ID is an unique key to identify products. If 1 sub-form is left out then it will not calculate.
I want to sum the [Order Quantity] from table [Details] minus Sum of [Quantity Receive] in table [Details2]
Balance: Sum([Details]![Order_Qty] - [Details2]![QTY Receive]) /*It is to calculate the balance*/