Skip to Content
0
Former Member
Jan 04, 2012 at 09:49 PM

Can't print a date range parameter field

78 Views

hello,

i'm using crystal reports v2011.

i am trying to figure out how to print/display a date range parameter field that has the following options set to true on the Create Parameter field dailog box:

optional prompt., allow multiple values, allow discrete values and allow range values.

It is a date time field.

I tried using the join function, but get the wrror message "A string array is reguired" (it pointed to the parameter field

This is the formula that I created - "Dates Selected: " + Join ({?Date Range}, " , ")

I also created this formula

If (not HasValue({?Date Range}) then ToText({?Date Range})

Else "No date range was selected";

and get this message

"A number . . date time . . or string is required here.

What I want to do is display a message if no date range was selected for the report, or display all of the date ranges that were selected.

Any help would be greatly appreciated.

Thank you

Tracy