Hi all.
I am having difficulty trying to get a subreport to summarize based on a formula.
In the main report I have a field in my Details section called @HTSCode. This is the formula:
It works well in the main report.
Now in the Subreport, I am using the same exact formula and want to summarize in my Footer, grouped by @HTSCode
For some reason, even though my main report picked up and displayed results of "8413.91.00" (which should display when the {SalesOrderLines.uomlAlternateHTSCode} and {PartRevisions.imrTariffID} are blank), my subreport refuses to pick it up. It will only summarize the lines that have those database fields filled in by the user.
Is there anything anyone can suggest as to what may be the possible reason? I tried all sorts of revisions to the formula to no avail.
Thanks.
I am having difficulty trying to get a subreport to summarize based on a formula.
In the main report I have a field in my Details section called @HTSCode. This is the formula:
Code:
If Len(Trim({SalesOrderLines.uomlAlternateHTSCode}))= 0 then
IF len({PartRevisions.imrTariffID})= 0 then
formula = "8413.91.00"
else
formula = {Tariffs.urmtHarmonizedCode}
End if
else
formula = {SalesOrderLines.uomlAlternateHTSCode}
end if
It works well in the main report.
Now in the Subreport, I am using the same exact formula and want to summarize in my Footer, grouped by @HTSCode
For some reason, even though my main report picked up and displayed results of "8413.91.00" (which should display when the {SalesOrderLines.uomlAlternateHTSCode} and {PartRevisions.imrTariffID} are blank), my subreport refuses to pick it up. It will only summarize the lines that have those database fields filled in by the user.
Is there anything anyone can suggest as to what may be the possible reason? I tried all sorts of revisions to the formula to no avail.
Thanks.