There are several fields on the subreport I want on the main report.
I'm able to put the value from the subreport to the main report EXCEPT when I'm trying to add a condition.
Code:
=IIf(([InStateTaxSummary subreport].[Report]![SalesTaxGroup])="City",[InStateTaxSummary subreport].[Report]![SalesTaxAmount],0)
It's producing $0 when it should be $283.76.
When I do a simple query to verify the IIF statement it works, but not in the main report.
What am I doing wrong?
SalesTaxGroup |
SalesTaxAmount |
City |
$283.76 |
County |
$139.55 |
RTA |
$113.54 |
State |
$329.14 |