Ok, I have a Main Report currently named Prepper, I have a Subreport named Prepper 2 Query Data.
In the subreport there is a control that is a calculated Count of another control on the sub report (Prepper Error) the calculation is counting the number of Prepper Errors. Ok that works fine.
What I am trying to do is that I want to have the Calculation from the subreport on the Main report (Prepper).
So in the Source code I have been told that I use the HasData Expression if I want the calculation to be zero if there are no errors but if there is errors I want the calculation.
What I did was this:
=IIf([Reports]![Prepper 2 Query Detail]![AccessTotalsPrepper Error].[Report].[HasData],[Reports]![Prepper 2 Query Detail]![AccessTotalsPrepper Error],0)
Ok the return value in my box is #Name? so I know I typed this all wrong. Can someone help me clean this up?
In the subreport there is a control that is a calculated Count of another control on the sub report (Prepper Error) the calculation is counting the number of Prepper Errors. Ok that works fine.
What I am trying to do is that I want to have the Calculation from the subreport on the Main report (Prepper).
So in the Source code I have been told that I use the HasData Expression if I want the calculation to be zero if there are no errors but if there is errors I want the calculation.
What I did was this:
=IIf([Reports]![Prepper 2 Query Detail]![AccessTotalsPrepper Error].[Report].[HasData],[Reports]![Prepper 2 Query Detail]![AccessTotalsPrepper Error],0)
Ok the return value in my box is #Name? so I know I typed this all wrong. Can someone help me clean this up?