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 2008 Forums
 Analysis Server and Reporting Services (2008)
 Switch or IIF

Author  Topic 

bukworm
Starting Member

10 Posts

Posted - 2011-06-21 : 00:15:26
Hi,

I have about 35 diffrent numerical codes for a Shipment Status. I want to display in the report according to the status number...

like 0 - New, 10 - Arrived,....

I used Switch, I think there is a limitation on the no. of statements inside it, If any1 know how many is the limit and any ther way around, so i can use it to loop throuh all 35 statuses. I cannot put this into a table.

Thanks,

raghuveer125
Constraint Violating Yak Guru

285 Posts

Posted - 2011-06-21 : 05:36:09
May be this link help you

http://www.bigresource.com/Tracker/Track-ms_sql-aK0hxwVb/

In Love... With Me!
Go to Top of Page

bukworm
Starting Member

10 Posts

Posted - 2011-06-21 : 08:53:47
I think i was not clear, the status number comes from DB, I want to put a layman understandable words instead of that number. so i put tat in as expression and used switch inside it. In crystal this is possible. I dont know the way in SSRS.

thanks
Go to Top of Page

bukworm
Starting Member

10 Posts

Posted - 2011-06-29 : 01:02:40
I got it, I made a function vb code in the report and call it in the expression by code.{function name}

thanks
Go to Top of Page
   

- Advertisement -