I have done this before but I can't get it to work now.
I have a form with a sub-form. The sub-form keeps a list of purchases by types, along with quantity, price and total of each order. I need To see the price paid for all of the same items.
I have tried a calculated control: =DSum("[TTCST]","StkSub","[Symbol] =" & [Symbol])
It simply responds "Error".
I tried: =DSum([TTCST],StkSub,[Symbol] = [Symbol])
and got #Name?
TTCST is the total cost of one purchase. StkSub is the name of the subform and"Symbol" is the id code.
Access Help was not very helpful. The example was identical to the first one above. Any help would be appreciated.
Thanks, Bill
I have a form with a sub-form. The sub-form keeps a list of purchases by types, along with quantity, price and total of each order. I need To see the price paid for all of the same items.
I have tried a calculated control: =DSum("[TTCST]","StkSub","[Symbol] =" & [Symbol])
It simply responds "Error".
I tried: =DSum([TTCST],StkSub,[Symbol] = [Symbol])
and got #Name?
TTCST is the total cost of one purchase. StkSub is the name of the subform and"Symbol" is the id code.
Access Help was not very helpful. The example was identical to the first one above. Any help would be appreciated.
Thanks, Bill