Does anyone know of a way to evaluate a field in the sub-report from the main report? Or to possibly pass that field back as a parameter?
Here is my problem:
Running CR8.5, VB6, SQL server database
I have a sub-report that may or may not display data. I evaluate (and suppress if necessary) each detail line in the sub-report based on some criteria. If the detail line is not suppressed, I increment a RecordCounter formula field. So, if all detail lines are suppressed, my RecordCounter = 0. Otherwise, RecordCounter equals the total number of detail lines that will print in the sub-report.
Since my sub-report has a header that always prints no matter if there are detail lines or not, I cannot use the "Suppress Blank Section" option in the main report. I would like to evaluate the total of RecordCounter in my sub-report from the main report and suppress the section if RecordCounter = 0.
I have tried almost everything. If anyone has any ideas, I would greatly appreciate it!
Thanks!
Jolynn
Here is my problem:
Running CR8.5, VB6, SQL server database
I have a sub-report that may or may not display data. I evaluate (and suppress if necessary) each detail line in the sub-report based on some criteria. If the detail line is not suppressed, I increment a RecordCounter formula field. So, if all detail lines are suppressed, my RecordCounter = 0. Otherwise, RecordCounter equals the total number of detail lines that will print in the sub-report.
Since my sub-report has a header that always prints no matter if there are detail lines or not, I cannot use the "Suppress Blank Section" option in the main report. I would like to evaluate the total of RecordCounter in my sub-report from the main report and suppress the section if RecordCounter = 0.
I have tried almost everything. If anyone has any ideas, I would greatly appreciate it!
Thanks!
Jolynn