Quantcast
Channel: SQLServerCentral » Reporting Services » Reporting Services » Latest topics
Viewing all articles
Browse latest Browse all 2791

Expressions: Using IIF and Replace statment

$
0
0
Hi,I have an expression: =Replace(Space(6) + Fields!ABC.Value," "," ")This shows 6 spaces before the value. I want to change value "Hello" to "Goodbye".If the spaces weren't needed, i know to write the expression as:=IIF(Fields!ABC.Value = "Hello", "Goodbye", Fields!ABC.Value) but how do I make this change and still keep the spaces?i have tried several ways and either i get "#Error" or I cannot preview. Can anyone help please?Thanks!!

Viewing all articles
Browse latest Browse all 2791

Trending Articles