Q:

Conditional hiding of a textbox using an expression and parameter value

I am using visual studio 2008 to write a reporting services report.
I am trying to conditionally hide a textbox/label on my rss report.  I have an integer input parameter the user in the form marks yes or no, but the parameter is assigned either a 0 or a 1 depending on the answer.
My current expression is:
=iif(Parameters!@onetime.value = 0, True, False)

I get error bc30455, argument not specified for parameter 'TruePart'... blah blah

A:

It looks like you may be declaring the parameter incorrectly.
Your parameter should look like Parameters!onetime.Value without the @ sign.
Additionally, for the full statement, I'm assuming this is being used in the visibility settings.  For that property, False means the textbox will be visible and True will hide the textbox.  The expression you'll need should look like this:
=IIF(Parameters!onetime.Value = 0, True, False)

This expression will hide the textbox if the onetime parameter is set to 0.

