jehanzebn
Programmer
- May 28, 2001
- 244
Morning all (happy new year! ))
I have found one problem with my report which calculates number of returns and credits.
The report is set to 4 date criterias.
1: Daily
2: Last 5 Days
3: Last 4 Weeks
4: Year to date
Now to get the report work faster I added a formula into the report record selection
{order_header.date_entered}=Yeartodate
Since it has been set to yeartodate at record selection, when I ran the report today, it produced no results for Last 5 Days and Last4Weeks as both do not set to Yeartodate (2008) criteria.
I then removed the Yeartodate formula from the Record Selection. Since I did that, the report is back to sluggish speed.
I think when I remove the date criteria from the record selection the report gets all the records regardless of the date before it processes the date criterias set into the report. In other words, it brings all the records from the table and then filters them onto the report. Hence slow speed.
Is there anyway to avoid the slow speed and get the right data?
In current situation
1: Daily set to 02/01/2009
2: Last 5 days set to 26/12/2008 to 01/01/2009
3: Last 4 Weeks set to 01/12/2008 to 26/12/2008
4: Year to date set to 01/01/2009 to 02/01/2009
Any ideas how to get this sorted?
Many thanks
Kind Regards
Jehanzeb
Jehanzeb
Crystal Reports 2008
Visual Studio 2008
Informix Database
I have found one problem with my report which calculates number of returns and credits.
The report is set to 4 date criterias.
1: Daily
2: Last 5 Days
3: Last 4 Weeks
4: Year to date
Now to get the report work faster I added a formula into the report record selection
{order_header.date_entered}=Yeartodate
Since it has been set to yeartodate at record selection, when I ran the report today, it produced no results for Last 5 Days and Last4Weeks as both do not set to Yeartodate (2008) criteria.
I then removed the Yeartodate formula from the Record Selection. Since I did that, the report is back to sluggish speed.
I think when I remove the date criteria from the record selection the report gets all the records regardless of the date before it processes the date criterias set into the report. In other words, it brings all the records from the table and then filters them onto the report. Hence slow speed.
Is there anyway to avoid the slow speed and get the right data?
In current situation
1: Daily set to 02/01/2009
2: Last 5 days set to 26/12/2008 to 01/01/2009
3: Last 4 Weeks set to 01/12/2008 to 26/12/2008
4: Year to date set to 01/01/2009 to 02/01/2009
Any ideas how to get this sorted?
Many thanks
Kind Regards
Jehanzeb
Jehanzeb
Crystal Reports 2008
Visual Studio 2008
Informix Database