Solved

Out of Memory Error When Running a MS Access 2000 report

Posted on 2004-08-19
3
273 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
Comment Utility
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
Comment Utility
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
Comment Utility
Can you educate me on what page locks are?
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now