Access 97 subreports REALLY slow  | |
June 20th, 2002, 12:44 PM
|
#1 (permalink)
| | Member
Join Date: Feb 2002 Location: Here,but not TOTALLY
Posts: 179
| Access 97 subreports REALLY slow
I'm working on an Access 97 application.
The problem I'm having is that there is one report that takes >3 minutes to run (~30 pages and "HEAVY" calculations). The speed itself is not the major issue.
The problem is that this report is actually 3 subreports "glued" together on this report and it wants to  RERUN  the subreports before it prints the report!!
The reports run, and they print FAST (immediately) alone. I'd RATHER NOT do that though (it's all about the keeping it simple for the users...  )
Any help on this topic would be appreciated. |
| |
June 21st, 2002, 10:10 AM
|
#2 (permalink)
| | Member
Join Date: Feb 2002 Location: Here,but not TOTALLY
Posts: 179
| |
| |
June 21st, 2002, 12:09 PM
|
#3 (permalink)
| | Not Really a Member
Join Date: Oct 2001
Posts: 25,386
|
have you ever thought about possibly using a module.. one to call the form with the given recordset and if they call for the report use that SAME recordset to call the report?
__________________
Helicopters don't fly; they vibrate so much and make so much noise that the earth rejects them.
|
| |
June 21st, 2002, 12:21 PM
|
#4 (permalink)
| | Member
Join Date: Oct 2001 Location: New York, New York
Posts: 258
|
Along the same idea, is there a way to restructure the query's for the main report or each of the subreports to use a single query or a single query written out to a temporary table. Then redo your report to use that one table or query. Use a macro or a module to run the make-table queries first and then the report.
Good luck. |
| |
June 21st, 2002, 12:28 PM
|
#5 (permalink)
| | Member
Join Date: Feb 2002 Location: Here,but not TOTALLY
Posts: 179
|
I've written modules for some other reports. (like 10min long reports...that one is usually between 1-12 months worth of data)
There are a number of SUM()s through the process.....I've been looking at ways to reduce the data that it goes through (like grouping past years' items, which is done for other info.)
I was more perplexed by it having to run again to print the report, when it's RIGHT IN FRONT OF YOU, NOW... (  just a little frustrated with M$...  )
Thanks for your help! |
| |
June 23rd, 2002, 05:26 PM
|
#6 (permalink)
| | Not Really a Member
Join Date: Oct 2001
Posts: 25,386
|
ya I know what ya mean Eins.. rather frustrating that Access doesn't use the same recordset in the background 
I imagine there's SOME reason coughexcusecough that they dont do that coughthatmakessensecough so its all for the benefit of the consumer |
| |
June 23rd, 2002, 09:21 PM
|
#7 (permalink)
| | Member
Join Date: Feb 2002 Location: Here,but not TOTALLY
Posts: 179
|
After looking at it (and having a nice restful weekend)....I have a theory to check tomorrow.....(systems-gods willing)
I seem to remember there being 3 levels of sub-reports.....I know 2 works OK, so maybe I can just simplify it by taking one level off and try it again.
I really would like it to run faster for the users. (even though the system running the report most is faster than the PDC.....)
Thanks again for all your help. |
| |
June 24th, 2002, 12:26 AM
|
#8 (permalink)
| | Senior Member
Join Date: Oct 2001
Posts: 552
|
Are they calculatios which you can perform in the queries? I'm not sure if it would make it faster or not.
__________________
It's like that, and it's like this....
|
| |
June 24th, 2002, 09:39 AM
|
#9 (permalink)
| | Member
Join Date: Feb 2002 Location: Here,but not TOTALLY
Posts: 179
|
The calculations _are_ done in queries. They are things like "Add up all the inventory totals for these parts."
Why can't Access have stored procedures instead?  (Don't get me started on SQL server...it's installed, but dragging for some yet undiscovered reason.....I suspect data type problems, but can't be sure.)
Guess the users will just have to get adjusted to the 3 report screens. |
| |
June 25th, 2002, 12:15 AM
|
#10 (permalink)
| | Senior Member
Join Date: Oct 2001
Posts: 552
|
What if you first made made a form, performed the calculations in code, and then made the report from the form? |
| | | Thread Tools | Search this Thread | | | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |