Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Out of Memory Error When Running a MS Access 2000 report

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
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.
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…

636 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