Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Analysis Server and Reporting Services (2005)
 Field Value Issue

Author  Topic 

kathyc2003
Starting Member

15 Posts

Posted - 2008-01-27 : 11:54:32
Hello,

I have a field on my SRS Report called directioncode.
This field gives me a value of 1 or 0.

How do I fix this code so :
if the value of directioncode is 0, the text "Incoming" is displayed
if the value of directioncode is 1, the text "Outgoing" is displayed?

Current value in the expression area of my field....
=Fields!directioncode.Value

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-01-28 : 00:50:48
Use:-
=IIF(CBool(Fields!directioncode.Value)=True,"Outgoing","Incoming")
Go to Top of Page
   

- Advertisement -