0

我有以下代码:-

=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")))

在 Visual Studio 2008 中运行时会返回以下错误:-

BC30057] 'Public Function IsNothing(Expression As Object) As Boolean' 的参数太多。

谁能建议错误可能是什么?

4

1 回答 1

1

IsNothng 只接受一个参数。你有 3 个。

IsNothing 函数

但我认为你应该移动一个括号:

=IIf(IsNothing(

=IIf((IsNothing
于 2013-07-26T11:36:43.953 回答