Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Report takes a long time to retrieve records

Status
Not open for further replies.

samson123

Programmer
Jun 17, 2005
79
US
I am using CR XI, Access 2000

I have a main report and three subreports in the detail sections (Db, Dc, Dd).

Contact Name, Company are stored in CONTACT table
Address info stored in ADDR table
Phone info stored in PHONE table
Email info stored in EML table


It is basically a Contact Address report where I have a Person's Name, Comapny Name in Section "Da" . (Underlay following section checked)

Address Info comes from subreport in Db
Phone Info comes from subreport in Dc
Email info comes from subreport in Dd

When I retrieve records (say 1700 contacts) it takes a long time ( close to 3 - 4 minutes) to show the report.

What can I do to improve the performace ?
 
Hi,
Why subreports?( They are inefficient and should be used only when necessary).
Can't you just join the tables ( or create a view in the database that does the join) and just use that for the report?



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
I work on a database where an account will have customer details and and may also have account address details. The accounts are given an equal join to the customer, but a 'left outer' to the account address details. Then I write formula fields, things like
Code:
if not isnull({ACCADD.Street})
then {ACCADD.Street}
else {CUST.Street}

As Turkbear says, subreports are inefficient. The main report makes one request to the server for all of the records it needs. A subreport in a detail line makes a separate request for each detail line, whcih means it can take forever.

[yinyang] Madawc Williams (East Anglia, UK) [yinyang]
[yinyang] Windows XP & Crystal 10 [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top