Z
Zinzaba
I have a fairly complex report that uses functions, written in VBA, as well
as sub-reports. The report takes anything from 30m to a few hours to run. The
number of records returned in the main report is not more than 12,000.
I removed the sub-reports and most of the function related fields on the
main report and then it ran within a few seconds.
Is seems as though the report runs the queries over and over again. When I
step through my code everything happens instantaneously but when the query is
run there is a delay. The database tables are linked in from SQL but if I run
the queries individually they run quickly. It is as though the main report
query is run for every group and the sub-report query is run for every detail
record. Is there any way to improve this setup?
as sub-reports. The report takes anything from 30m to a few hours to run. The
number of records returned in the main report is not more than 12,000.
I removed the sub-reports and most of the function related fields on the
main report and then it ran within a few seconds.
Is seems as though the report runs the queries over and over again. When I
step through my code everything happens instantaneously but when the query is
run there is a delay. The database tables are linked in from SQL but if I run
the queries individually they run quickly. It is as though the main report
query is run for every group and the sub-report query is run for every detail
record. Is there any way to improve this setup?