Your subreport will have a value in the $V{REPORT_COUNT} variable at fill time, usually the count of rows returned by the source query. In the case of an empty report it will be either: 0 if you set the report's "When no data" setting to "AllPagesNoData" or null if it is set to BlankPage or NoPages When you create the subreport control in you main report you wil need to pass the subreport's $V{REPORT_COUNT} variable's contents into your own variable (eg. $V{SUBREPORT_ROWCOUNT} ). This varable needs to be of type java.lang.Integer, have a default value expression of new java.lang.Integer(0), and have a calculation type value of "System". Its variable expression can be left blank. From there it's up to you as to how you use the variable, and how you trap and handle a value of null if necessary. Post edited by: jmurray, at: 2007/02/08 23:20