Solved

How do I get reporting services to recognize a bit field?

Posted on 2008-10-27
2
2,104 Views
Last Modified: 2012-05-05
I am returning a  bit value field from a Stored Procedue to the report and using the expression
=IIF(Fields!MyBitField.Value = 1, "Yes", "No")
and the report displays no for both 0 and 1
How do I get the report to recognize the value?
0
Comment
Question by:expertsexchangehunter
2 Comments
 
LVL 12

Accepted Solution

by:
jgv earned 500 total points
ID: 22822198
Haven't worked with bit fields in SSRS yet but would have thought it would return 0 or 1. Turns out it shows True/False. Try modifying the IIF statement like this and post back if it doesn't work as expected:
=IIF(Fields!MyBitField.Value = True, "Yes", "No")
0
 

Author Closing Comment

by:expertsexchangehunter
ID: 31510548
Ok. That works. <> 0 also worked
Thanks
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

1. Set up your parameter at the report level as usual, check the box Multi-value, and set the Data Type to String 2. Set the Stored Procedure Parameter to varchar(max)  --<---- This part here is the key to it's success Example:    @cst_key var…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question