I have a report that a user can select what they would like to group the report by. By doing this grouping the sort is automatically set. I have all string options then one date. when I try set up my function if the user selects a date crystal XI won't all me to have the date. Here is what my function looks like:
if {?option} = 'String' then (database string field) else
if {?option} = 'String' then (database string field) else
if {?option} = 'String' then (database string field) else
if {?option} = 'String' then (database date field) else
it is the date field that is stopping me. So I convert to a string
if {?option} = 'String' then cstr((database date field)) else
But when I do that the report will no longer sort as if this was a date field. If I simply tell the report to group by the date field only it works fine. But when I make that date a string crystal quits working...
Hopefully I am explaining this clearly enough. Let me know if you need more!
Thanks!!
if {?option} = 'String' then (database string field) else
if {?option} = 'String' then (database string field) else
if {?option} = 'String' then (database string field) else
if {?option} = 'String' then (database date field) else
it is the date field that is stopping me. So I convert to a string
if {?option} = 'String' then cstr((database date field)) else
But when I do that the report will no longer sort as if this was a date field. If I simply tell the report to group by the date field only it works fine. But when I make that date a string crystal quits working...
Hopefully I am explaining this clearly enough. Let me know if you need more!
Thanks!!