all groups > sql server reporting services > june 2006 >
You're in the

sql server reporting services

group:

SWITCH statement



SWITCH statement K. Thomas
6/29/2006 12:57:02 PM
sql server reporting services: What's the best way to display "approved" when a status field is "A",
"pending" when a status field is "P", etc? Would the SWITCH statement be
best? If so, what is the syntax for this and where do I put it in my report?
Any suggestions are welcomed.
--
RE: SWITCH statement Matt
6/29/2006 6:25:01 PM
You can put a switch statement like the following in the textbox/table cell
where you need the "Approved"/"Pending" values displayed:

=Switch(Fields!StatusField.Value "A", "Approved", Fields!StatusField.Value =
"P", "Pending")

[quoted text, click to view]
RE: SWITCH statement K. Thomas
6/30/2006 12:58:02 PM
It worked!! Thanks Matt!
--
K. Thomas


[quoted text, click to view]
AddThis Social Bookmark Button