how to apply if Condition in rdlc report to display "Yes" if the column return true value and if it display false return "No"

29,517

Solution 1

I thought it was like this

=IIf(Field!Application.Value = true,"yes","no")

1) 'V' is supposed to be capital 2) parenthesis should be at the end.

Solution 2

You can use the IIf command:

=IIf(<Expression as Boolean>, <TruePart as Object>, <FalsePart as Object>) as Object

Like this:

=IIf(Fields!Application.Value = true, "Yes", "No")

This works to me, bye!

Share:
29,517

Related videos on Youtube

user3340023
Author by

user3340023

Updated on August 19, 2020

Comments

  • user3340023
    user3340023 over 3 years

    i am working on rdlc report , i have a column in rdlc report , and i want if there is true value , return me "YES" and if there is false return "NO" i have tried the following code but it not working

    =iif(Field!Application.value)="True","Yes","No"))
    

    thanks in advance.

  • yoshgoodman
    yoshgoodman almost 9 years
    Field needs to be Fields