hmmm....so you have a date range parameter that can be filled by the user or left blank to have Crystal give it a default...is that the idea?
And this is used in the record selection formula, I suppose
maybe this will work
//start date
(if isnull({?date}[1]) then
{Table.date} >= DateAdd("m",-6,
date(year(currentdate),month(currentdate),01))
else
{Table.date} >= {?date}[1]; ) and
//end date
(if isnull({?date}[2]) then
{Table.date} >= DateAdd("d",-1,
date(year(currentdate),month(currentdate,01))
else
{Table.date} >= {?date}[2]; )
this probably wouldn't be passed to the server so may be slow
Jim Broadbent