A97.
I have a landscape report with 4 sub-reports. All reports including the main
report use the same recordsource.
The LinkMasterFields and LinkChildFields properties for all sub-reports
read:
ClientName;JobID;JobID;JobID;
In this case the dynamic report is grouping on Client name only. The other 3
grouping levels are there in case the user wants to use them.
Now, when I run the report with 400 Job records in the database it takes 11
seconds to load. This is OK since the report is 56 pages long and has quite
a bit of formatting code.
However, when the report is run with 5000 records, it takes over one minute.
The thing is that it is still only 56 pages long since the report filters
out Jobs are finished, i.e. IsNull([FinishedDate])=False -- 4600 jobs are
actually finished leaving 400 jobs to report on.
I have a myriad of indexes including:
Index 1: FinishedDate
Index 2: ClientName
Index 3: JobID
Index 4: FinishedDate, JobID
Index 5: ClientName, FinishedDate
The question is, why does the report take longer to run even though the same
amount of records are being reported on? Any thoughts?
TIA
Mark