Intressting... when I put this formula to TextBox in header of continous form, I recieve "Error" in this TextBox and in all ohters TextBoxes in header of Form.
I suspect there's a problem with your approach, to Sum calculated fields you have to repeat the calculation ie Sum(Cost * Quantity) as to how you could Sum a DSum I've no idea, in fact it doesn't make sense to try it