2017-01-25 5 views
0

는 RDLC 보고서를 만들려고하지만 예외로 실행하고 잘못되었습니다 [BC30516] 액세스 할 수있는 'IIf'가이 인수 수를 허용하지 않기 때문에 과부하 해결에 실패했습니다.보고서의 정의는

       <Value> 
           =Fields!TermsDescription.Value &amp; " " &amp; Fields!PrimaryCurrency.Value &amp; vbcrlf &amp; 
           iif((Parameters!DocType.Value = "INVOICE" and Fields!ShowInterestStatement.Value), "1.5% Per Month (19.56% per Annum)" &amp; vbcrlf &amp; "Will be Charged on Overdue Accounts" &amp; vbcrlf &amp; 
           IIF((Parameters!DocType.Value = "ORDER ACKNOWLEDGEMENT"), "All goods sold are subject to Apex Remington's terms and conditions of sale which are available for your review at http://www.apexdistribution.com/terms", "test") &amp; 

           </Value> 

답변

1

첫 번째 IIf 기능의 FalsePart을 지정해야합니다 : 여기에 코드입니다.

=IIf(
    Expression1, 
    TruePart1 & IIf(Expression2, TruePart2, FalsePart2), 
    FalsePart1 
)