I have a subreport linked to the main report by a string parameter(which is parameter in a stored proc that is behind the report). When this parameter has a value (or empty string), the subreport runs fine as expected. However, when in the main report I set the value of the linked parameter to Null, then my logic in subreport's record selection formula doesn't recognize this parameter as neither Null noe empty string. I created a test formula in the subreport, which will dipsplay a certain message based on the linked parameter passed:
This formula writes nothing is I set the linked parameter to Null, so it's neither Null, nor empty string or has any value. Any ideas?
Code:
if isnull({?MyLinkedParam}) then
"null"
else
if trim({?MyLinkedParam}) = "" then
"empty string"
else
"has value"