?
Solved

Out of Memory Error When Running a MS Access 2000 report

Posted on 2004-08-19
3
Medium Priority
?
281 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 500 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Suggested Courses

777 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