Say the subreport is in a subreport object called subDetail, and the report contained therein calculates the sum of an amount as =Sum(amt) in the report footer control named txtSumAmt.
This works fine when there is data. However, when there is none, the entire subreport disappears, and there simply is no control called txtSumAmount to read from...
You actually need to test for the presence of data, and the main report can use an expression like this to do so:
=IIf(subDetails.Report.HasData,subDetails!txtSumAmt,0)
I hope this helps!
(°v°)