2013-07-26 155 views
0

我有下面的一塊編碼: - 其時在Visual Studio 2008中運行參數太多

=IIf(IsNothing(((Sum(Fields!TotalCost.Value, "Accrued") + Sum(Fields!TotalCost.Value, "serv1"))/(Sum(Fields!Quantity.Value, "serv1") + Sum(Fields!Quantity.Value, "Accrued"))), (45), 
((Sum(Fields!TotalCost.Value, "Accrued") + Sum(Fields!TotalCost.Value, "serv1"))/(Sum(Fields!Quantity.Value, "serv1") + Sum(Fields!Quantity.Value, "Accrued"))) 

返回下面的錯誤: -

BC30057] Too many arguments to 'Public Function IsNothing(Expression As Object) As Boolean'.

任何人都可以建議在錯誤發生什麼事情是?

回答

1

IsNothng只有一個參數。你有3

IsNothing Function

但我想你應該搬到一個括號:從

=IIf(IsNothing(

=IIf((IsNothing