Hi,
Been working on my database today, but have come across a problem with summing up the costs on my subform. In my orders form, I have a productordered subform in continuous mode, listing the product ordered and the quantity ordered.
On the fly, I have a query which then calculates the cost of product price*quantity, and places this value into txtPrice, a textbox of currency type.
So now, the problem is, things don't seem to be summing up.
I have already placed another textbox, txtTotal in the footer of the subform, with its control source being set to ='Sum([txtPrice]), but unfortunately, its giving me the #Name? error.
With the sum equation , I've tried variations from =Sum([txtPrice]), =NZ(Sum([Price])) and such but with no success.
Anyone know the solution to this problem?
Thanks in advance.
Maldini
Been working on my database today, but have come across a problem with summing up the costs on my subform. In my orders form, I have a productordered subform in continuous mode, listing the product ordered and the quantity ordered.
On the fly, I have a query which then calculates the cost of product price*quantity, and places this value into txtPrice, a textbox of currency type.
So now, the problem is, things don't seem to be summing up.
I have already placed another textbox, txtTotal in the footer of the subform, with its control source being set to ='Sum([txtPrice]), but unfortunately, its giving me the #Name? error.
With the sum equation , I've tried variations from =Sum([txtPrice]), =NZ(Sum([Price])) and such but with no success.
Anyone know the solution to this problem?
Thanks in advance.
Maldini