Frage

I have the below piece of coding :-

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

which when run in Visual Studio 2008 returns the below error:-

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

Can anyone advise on what the error may be?

War es hilfreich?

Lösung

IsNothng takes only one argument. You have 3.

IsNothing Function

But i think you should move one parenthesis:

from

=IIf(IsNothing(

to

=IIf((IsNothing
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top