Not enough memory to perform this operation

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Help! All of a sudden I received this message as I saved a very complex
report that I was working on in Access 2003. The report has a whole lot of
code behind it and represents many days of work. Now I can't open the report
or the code layer, nor can I export or import it. Can someone advise me what
just happened and how I can (I hope) recover my work, a major portion of
which is from today so not saved.
 
richardb said:
Of course, I re-started the work station. There's plenty of memory and disk
space. I also tried the fix of decompiling the database posted by Bill Mosca

First thing, make a backup copy of your MDB.

Second, can you still open the Visual Basic Editor?

If *no*, send your MDB to me in a ZIP file. I *may* be able to fix
it in no time at all, and at no cost (but also with no guarantee!)

If yes (you still *can* open the VBA Editor), do the following steps:

Open the immediate window (Ctrl+G), and type

Application.SaveAsText acReport, "YourReport", "C:\YourReport.txt"

and press <Enter>.

Now delete "YourReport" from the current MDB, and close Access. Rename
"YourApp.mdb" to "YourApp_old.mdb".

Start Access without opening a MDB. Create an new blank MDB. Select
the menu "Tools/Options..", click on the "General" tab and *uncheck"
the option "Track name AutoCorrect info". Close the Options dialog
with Ok. Save the MDB under "YourApp.mdb" (it is called db1.mdb when
you created it).

On the menu, select "File/Get External Data/Import..." and select
"YourApp_old.mdb" as the file to import from. In the following dilaog
box, select all objects on all tabs. Also click the "Options>>" button
and check "Menus and Toolbars" and "Import/Export Specs" if you have
any of these in your application ("Menus and Toolbars" meaning the
menus and toolbars you have created yourself within your application,
not the standard menues and toolbars that are included in Access
anyway).

Run the import.

Open the VBA Editor, open the immediate window (Ctrl+G) and type

Application.LoadFromText acReport, "YourReport", "C:\YourReport.txt"

and press <Enter>

Maybe you need to add some application specific references in the
dialog box "Tools/References..." if you use any of these in your
application (if you never have used this dialog box before, just
ignore this step).

Now your application should be fixed. You can delete the
file "C:\YourReport.txt".

HTH
Matthias Kläy
 
Matthias,

That is really a valuable piece of information! To meet my deadline, I had
to re-construct the report, but I will try the method and keep it on file for
the next time.

Richard
 
Back
Top