Skip to Content
0
Former Member
Feb 14, 2011 at 11:39 AM

Optional parameter, no values

227 Views

Hi,

I have an optional parameter in CR2008; I would like to print the choosen parameter values into the report header. This works great by using this function:

Join({?MyParameter},", ")

However, when no values were selected I get the error message "Parameter has no value".

So I adapted the function:

if hasvalue({?MyParameter}) then Join({?MyParameter},", ") else "All records"

The function is correct but I still get the error message (error dialog window).

How can I suppress the error message?

Thanks!