문제

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?

도움이 되었습니까?

해결책

IsNothng takes only one argument. You have 3.

IsNothing Function

But i think you should move one parenthesis:

from

=IIf(IsNothing(

to

=IIf((IsNothing
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top