?
Solved

SSRS - Control visibility of subreports

Posted on 2010-09-15
5
Medium Priority
?
660 Views
Last Modified: 2012-05-10
Based upon a field in the data source turn on/off a subreport
0
Comment
Question by:TWenger
  • 3
  • 2
5 Comments
 
LVL 11

Accepted Solution

by:
aelliso3 earned 2000 total points
ID: 33684587

In Subreport Properites -- > Visibility and select  Show or hide based on expression. Make the expression something like    

=Iif(Fields!Column1.Value = "123", True, False)
0
 

Author Comment

by:TWenger
ID: 33754506
I have tried this and what ever I put in as 123 it does not recognize - always comes back false.... any other suggestions.
0
 
LVL 11

Expert Comment

by:aelliso3
ID: 33754601
What's the data type of the field that you are using?
0
 

Author Comment

by:TWenger
ID: 33756392
Tried textbox, Y/N, number
0
 
LVL 11

Expert Comment

by:aelliso3
ID: 33756498
can you try this one:
=Iif(FIRST(Fields!Column1.Value) = "123", True, False)
If that doesn't do it, is there only one row returned from this datasource?
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Written by Valentino Vranken. A while ago I wrote an article called Chart Optimization Tips (http://www.experts-exchange.com/articles/Microsoft/Development/MS-SQL-Server/MS-SQL_Reporting/Chart-Optimization-Tips.html).  This article explained how …
Introduction In the following article I’ll be discussing and demonstrating several different ways of how images can be put on a report. I’m using SQL Server Reporting Services 2008 R2 CTP, more precisely version 10.50.1352.12, but the methods ex…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Loops Section Overview
Suggested Courses
Course of the Month16 days, 3 hours left to enroll

850 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