if {VIEW50.Account01} = '营业收入' then '營業收入淨額' else if {VIEW50.Account01} = '銷貨成本' then '銷貨成本' else if {VIEW50.Account01} = '營業費用' then '營業費用總額' else if {VIEW50.Account01} = '非營業收入' then '非營業收入總額' else if {VIEW50.Account01} = '非營業支出' then '非營業支出總額'
1.選VB dim rstr as string select case {VIEW50.Account01} case '营业收入' rstr='營業收入淨額' case '銷貨成本' rstr='銷貨成本' case '營業費用' rstr='營業費用總額' case '非營業收入' rstr='非營業收入總額' case 非營業支出' rstr='非營業支出總額' case else rstr='' end select formula=rstr 2.可使用累計值來計算