I created a subreport that pulls company cost for certain medical benefits as of certain date.
I then put the subreport into the main report as directed in a footer section. The main report pulls data from other benefit information. I then have a formula to combine the subreport total of company cost with the total benefit cost from the main report.
The problem is when the subreport encounters a person that does not have the selected criteria benefits for medical from the subreport. In the main report it is pulling data from the previous record and adds the amount into my totals on the main report. I need to know of a formula that if the subreport information is null then do not add the company cost into the main report amounts.
Here is the formula from my subreport. the name in the main report is Main report.
WhilePrintingRecords;
Shared CurrencyVar Companycost:=-({BENEFIT.CMP_FLX_CONT})+{BENEFIT.COMP_CONT}
In the main report formula to add the subreport amounts is
{@Total Cost Benefits}+{@Mainformula}
Can you help?
I then put the subreport into the main report as directed in a footer section. The main report pulls data from other benefit information. I then have a formula to combine the subreport total of company cost with the total benefit cost from the main report.
The problem is when the subreport encounters a person that does not have the selected criteria benefits for medical from the subreport. In the main report it is pulling data from the previous record and adds the amount into my totals on the main report. I need to know of a formula that if the subreport information is null then do not add the company cost into the main report amounts.
Here is the formula from my subreport. the name in the main report is Main report.
WhilePrintingRecords;
Shared CurrencyVar Companycost:=-({BENEFIT.CMP_FLX_CONT})+{BENEFIT.COMP_CONT}
In the main report formula to add the subreport amounts is
{@Total Cost Benefits}+{@Mainformula}
Can you help?