Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Services / Reporting Services / June 2006

Tip: Looking for answers? Try searching our database.

SWITCH statement

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
K. Thomas - 29 Jun 2006 20:57 GMT
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.
Signature

K. Thomas

Matt - 30 Jun 2006 02:25 GMT
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")

> 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.
K. Thomas - 30 Jun 2006 20:58 GMT
It worked!!  Thanks Matt!
Signature

K. Thomas

> You can put a switch statement like the following in the textbox/table cell
> where you need the "Approved"/"Pending" values displayed:
[quoted text clipped - 6 lines]
> > best?  If so, what is the syntax for this and where do I put it in my report?
> >  Any suggestions are welcomed.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.