I have a report that is taking a very long time to create. The reason is that it uses a filter on one field, and an index on another.
The first field is by NAME, and we want to do the report grouping all records by name, and breaking when the name changes.
The second field for selection is by date, and I use a filter to look only at records within a range of dates.
There might be 500,000 records in the .dbf. If I use a filter, it must go through each record to see if it has a date in the range specified. This is painfully slow
It would be great to use seascape...( ) to limit the records to just those in the date range, but then the break is with each date, not with each name. I tried the index as DTOS( itemdate ) plus item name
Using setscopetop( beginningdate ) and setscopebottom( endingdate ) selects the correct records, but breaks with every day change plus every name change.
Any ideas on how to accomplish this ?