Solved

Out of Memory Error When Running a MS Access 2000 report

Posted on 2004-08-19
3
278 Views
Last Modified: 2008-03-17
Hi,

I have created a MS Access 2000 Project (.adp) linked to a SQL server 2000 database.  The front-end Access application uses a form with buttons to bring up several reports.  All of the reports are powered by stored procedures contained in SQL server.  I have 2 dozen reports with less than 54,000 records and 2 reports with 417,000 and 1,300,000 records.  The two larger reports are not running, giving me the error "Out of Memory".  I tried increasing the size of the paging file (virtual memory) but it didn't solve the problem.  A few questions:

Is there a maximum number of records that a report can hold?
Is there a maximum number of pages that a report can be?  If so, is there a way to have data displayed on multiple columns on the same page? (as opposed to just continuing downward to the next page)
Does the number of fields in the report hurt the performance? (ie, if I only query the three most vital fields, will this help solve the problem.  Currently, I have about a dozen fields)
If I want to output to .txt instead, will I run into the same problem?

Also, if a report is not feasible can you suggest another way for me to export and/or display the data.  I would still like to have the user trigger the export or display from a form.

Your help would be greatly appreciated.

Thanks,

Tom
0
Comment
Question by:tawalsh3
  • 2
3 Comments
 
LVL 11

Expert Comment

by:phileoca
ID: 11842980
below is the link to MS with 3 methods to fix/prevent this error.
the important VBA is:
   ' Set MaxLocksPerFile.
   DBEngine.SetOption dbMaxLocksPerFile, 200000

http://support.microsoft.com/default.aspx?scid=kb;en-us;286153&Product=acc
0
 
LVL 11

Accepted Solution

by:
phileoca earned 250 total points
ID: 11842993
CAUSE
The page locks required for the transaction exceed the MaxLocksPerFile value, which defaults to 9500 locks. The MaxLocksPerFile setting is stored in the Windows registry.

the above link will show you how to fix that =)
all of mine are set to 300000
0
 

Author Comment

by:tawalsh3
ID: 11843582
Can you educate me on what page locks are?
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question