Hi,
Crystal report version 7.0
I am creating a report that will be distributed to employees. Not all employees in the database will have the data criteria and thus not show up on the report. The report will pull one set of data for the employee in the main report and one set of data in a subreport. The employee can have data records in only the main report, only the subreport, both main and subreport, or in neither. In this last case the employee does not come on the report.
My concern is that if the employee has neither he does not show up on the report at all (i.e. no header information). So I am thinking of using a group selection. If the employee has records in the main report the group selection formula is easy, but if they only have records in the subreport I have concerns. I can bring back a shared variable from the subreport to indicate if there were data records or not (probably initialize a shared boolean variable to false and change to true if I find a record). OK now I can bring this shared variable into my group selection formula, but this variable is not evaluated until the records are printing.
So my question is does the group selection evaluate while the records are printing, or if I use WhilePrintingRecords in the group selection formula can I force it to evaluate at this time?
I just want some advice before I do trial and error.
Also if there is another way to accomplish this that would be great.
Thanks,
Mike
Crystal report version 7.0
I am creating a report that will be distributed to employees. Not all employees in the database will have the data criteria and thus not show up on the report. The report will pull one set of data for the employee in the main report and one set of data in a subreport. The employee can have data records in only the main report, only the subreport, both main and subreport, or in neither. In this last case the employee does not come on the report.
My concern is that if the employee has neither he does not show up on the report at all (i.e. no header information). So I am thinking of using a group selection. If the employee has records in the main report the group selection formula is easy, but if they only have records in the subreport I have concerns. I can bring back a shared variable from the subreport to indicate if there were data records or not (probably initialize a shared boolean variable to false and change to true if I find a record). OK now I can bring this shared variable into my group selection formula, but this variable is not evaluated until the records are printing.
So my question is does the group selection evaluate while the records are printing, or if I use WhilePrintingRecords in the group selection formula can I force it to evaluate at this time?
I just want some advice before I do trial and error.
Also if there is another way to accomplish this that would be great.
Thanks,
Mike