my function code ----------------- Public MyValue as Decimal = 0 Public Function MyAddToSum(ByVal mytax as Decimal) as Decimal MyValue = mytax + MyValue Return MyValue End Function My text box expression ---------------------- =Code.MyAddToSum(SUM(IIF(Fields!tax.Value="VAT", Fields!cst_vat_amount.Value, 0)))
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)