473,387 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Deleting Records Before Packaging Causing Slow Reports

This one seems bizarre!

We have a database consisting of a main table and 12 - 15 "sub" tables,
which are connected via cascading relationships. The database performs
many complex calculations and displays the results in both forms and
reports. In the process of developing the database we "entered" 12
sample clients. Before packaging the database we remove the sample
clients by deleting them from the main table, which cascades the
deletions to the other tables.

The problem is this:

The reports we use to display the calculations and appropriate results
run in a reasonable time (8 to 10 seconds to open in display format)
before we delete the sample records and package the program. However,
when the sample records are deleted and the database is packaged, the
reports take 2 to 3 minutes to open. We have tried dozens of
combinations and the common factor which seems to slow the reports is
the deleting of the sample records. Packaging the software with the
sample records left in will allow the reports to run normally; however,
we obviously don't want the samples available to the end user.

In addition, we have two big reports (one is 40 pages and the other is
105). Both reports are a series of one and two-page sub reports
"stacked" onto a main report. Is there a better way to do this? We
also have a small occurrence of the bigger reports printing a blank page
or two when displayed in preview format. Any ideas?

Also, we use a series of "nested" queries to calculate and display
complex formulas. Is there a better way to do this?

Thank you! Coy
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #1
1 1875
If you have only tested with 12 sample clients and your users have hundreds
or thousands of clients, then the problem may be that the structure and the
stacked queries are inadequate.

Before you jump to that conclusion, though, be sure to follow through all
the issues listed in Tony Toew's excellent Access FAQ at:
http://www.granite.ab.ca/access/performancefaq.htm
The combination of issues like Name AutoCorect and subdatasheets can make an
order of magnitude difference.

Another factor is that Access the JET query optimizer compiles your queries
with a plan that makes sense at the time it was created. If the real data is
radically different, the queries might be using completely the wrong
approach. After you have a real-world scenario, try opening the queries in
design view and making a change (such as replacing a field with itself) so
as to force them to recompile.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Coy Howe" <cf*@olypen.com> wrote in message news:42**********@127.0.0.1...
This one seems bizarre!

We have a database consisting of a main table and 12 - 15 "sub" tables,
which are connected via cascading relationships. The database performs
many complex calculations and displays the results in both forms and
reports. In the process of developing the database we "entered" 12
sample clients. Before packaging the database we remove the sample
clients by deleting them from the main table, which cascades the
deletions to the other tables.

The problem is this:

The reports we use to display the calculations and appropriate results
run in a reasonable time (8 to 10 seconds to open in display format)
before we delete the sample records and package the program. However,
when the sample records are deleted and the database is packaged, the
reports take 2 to 3 minutes to open. We have tried dozens of
combinations and the common factor which seems to slow the reports is
the deleting of the sample records. Packaging the software with the
sample records left in will allow the reports to run normally; however,
we obviously don't want the samples available to the end user.

In addition, we have two big reports (one is 40 pages and the other is
105). Both reports are a series of one and two-page sub reports
"stacked" onto a main report. Is there a better way to do this? We
also have a small occurrence of the bigger reports printing a blank page
or two when displayed in preview format. Any ideas?

Also, we use a series of "nested" queries to calculate and display
complex formulas. Is there a better way to do this?

Thank you! Coy

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: rishi | last post by:
Looking for tips on how to improve performance on deleting records. In our database we do dataloads daily that require us to purge millions of records a day so any improvement in speed would be...
5
by: Alex | last post by:
Hi, I have two tables , A and B where table B has a foreign key constraint to table A. I want to delete all records in table A that are older than a certain date that are not referenced by...
3
by: Nathan Bloom | last post by:
Hi, I have a data entry form (access 2000) that also allows the user to add, update, and delete records from the form. The Delete action is carried out in an event procedure and has the...
1
by: KC | last post by:
Hello, I am using Access 2002. WinXP, Template from MS called Orders Mgmt DB. I have tweaked this DB to work for our small co. It has worked pretty well up until I made the mistake of deleting...
2
by: Jozef | last post by:
It's possible I might have found the problem of my previous post, but I'm really not sure. My XP Packaging wizard is adding COMCAT.DLL version 4.71. My development machine uses version 5.0 and the...
46
by: DP | last post by:
hi, i've got a form, with a subform in it. i've got a delete button in the subform. the code i;ve got is; Private Sub cmdDeleteRecord_Click() msg = "Are you sure you want to delete this...
1
by: effiw | last post by:
I'm working with an application that has an MS Access front end linked to the SQL Server DB backend. During a period of one week, 32 records of a spefic event (and all related records to that event)...
5
by: Paul Rubin | last post by:
I've been through this kind of thing a few times in the past and received excellent advice here on clpy about how to deal with specific technical aspects (e.g. how to use setuptools, InnoSetup,...
5
by: Neil | last post by:
I'm running Access 2000 with a SQL 7 back end, using ODBC linked tables in an MDB file. The db is used by about 30 users on a LAN, and an additional 10 or so on a WAN. Recently, one of the WAN...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.