Solved

Out of Memory Error When Running a MS Access 2000 report

Posted on 2004-08-19
3
280 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

696 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