views:

785

answers:

2

Hello,

Is it possible to reference a textbox from the embedded code of a ssrs report. I would like to show or hide the textbox based on a condition.

Thanks.

Seth

A: 

Best way to do this is to put a condition on the visible property of your textbox. For example, the Visibility.Hidden property of your textbox, put your condition like this:

=If(CONDITION, True, False)

So, if your condition is True - set Hidden = True and if your condition is False- set Hidden = False

Jon
Thanks for your answer. Although I still used custom code per the comment above.Seth
Seth Spearman
+1  A: 

You can use the ReportItems collection...

gbn