W
wssr
Following code segment looks good but the <IF> equates to true always and all
departments print... What am I doing wrong?
<ROW> "Non-Taxable Sales:" </ROW>
<SET name="NonTaxableTotal" type="vbCurrency"> 0 </SET>
<SET name="TATTOO" type="vbString"> "TATTOO" </SET>
<FOR each="ReportDepartment">
<IF>
<CONDITION> Report.Department.Name = TATTOO </CONDITION>
<THEN>
<ROW> Report.Department.Name "|"
Report.Department.Sales </ROW>
<SET name="NonTaxableTotal" type="vbCurrency">
NonTaxableTotal +
Report.Department.Sales </SET>
</THEN>
</IF>
</FOR>
<ROW> "|==============================================|" </ROW>
<ROW> "Total |" NonTaxableTotal </ROW>
departments print... What am I doing wrong?
<ROW> "Non-Taxable Sales:" </ROW>
<SET name="NonTaxableTotal" type="vbCurrency"> 0 </SET>
<SET name="TATTOO" type="vbString"> "TATTOO" </SET>
<FOR each="ReportDepartment">
<IF>
<CONDITION> Report.Department.Name = TATTOO </CONDITION>
<THEN>
<ROW> Report.Department.Name "|"
Report.Department.Sales </ROW>
<SET name="NonTaxableTotal" type="vbCurrency">
NonTaxableTotal +
Report.Department.Sales </SET>
</THEN>
</IF>
</FOR>
<ROW> "|==============================================|" </ROW>
<ROW> "Total |" NonTaxableTotal </ROW>