Solved

Out Of Memory Error

Posted on 1998-10-18
6
425 Views
Last Modified: 2013-12-25
Hello fellow Database guru's,
I'm using the VB DataControl to handle a large Access 7 database.

The code works fine on smaller databases, but when I attempt to use it on my large database, setting the recordsource to a SQL statement the system generates:
system error &H800040005 (-2147467259).

The error handling routine in the code shows:
Data error event hit err:Out of memory.

Does anyone know what causes this, and how I can get round it?

Thank you!
0
Comment
Question by:databaseguru
6 Comments
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1497050
Which error do you mean
&h80040005  or &h80004005
Most likely the second on E_FAIL.
The system just fails with an unspecified error.

0
 
LVL 2

Expert Comment

by:Veroland
ID: 1497051
how big is the database ? and when it chrases how big then. I've had a problem where my DB grew up tot 1 gig while busy doing a query and then crashes. Access can only handle DB's up to a gig
0
 
LVL 5

Expert Comment

by:AnswerTheMan
ID: 1497052
u wrote u tried on a smaller database. have u used the same
setting for the recordsource to a SQL statement ?
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
LVL 3

Expert Comment

by:TheAnswerMan
ID: 1497053
Is there a Grid Bound to the Datacontrol?
0
 
LVL 2

Expert Comment

by:kswinney
ID: 1497054
Can you post the SQL for your recordsource?  Also, have you tried executing the exact same SQL inside Access 7?

Are you returning a huge number of rows from your query?  If so, try binding your control as a virtual control.  Grids especially consume large amounts of resources trying to fill themselves with entire recordsets.  Virtual binding can avoid this problem.

One more thing:  Consider re-coding your query to return less data based on user input.  

The narrower you make your select statement, the faster your app will run.  When you're binding large recordsets it's especially important.  You probably already know this stuff... but it's usually the cause of the problem you're experiencing.

0
 
LVL 3

Accepted Solution

by:
SPECIALIST earned 200 total points
ID: 1497055
download the new MS JET from www.microsoft.com.  It addresses many problems and fixes them.

Good luck

Specialist
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Suggested Solutions

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

830 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