Question : Access Database Out of Memory Error

I am unsure of what has created a barrier to adding additional vba code/ imporitng objects. If I remove a number objects (forms/reports) it is possible to continue adding code and other objects.  (It does not seem to matter which objects are removed which appears to mean the problem is not with corrupted objects.)  It is not posible to import forms/reports back into the mdb with out the Out of Memory error when attempting to compile. While testing I noticed that I can import simplier objects one at a time without the error upto a point.

Are there other mdb limits than those listed in the specifications.  The applciation is below those limits.

The MSysObject table has 5198 objects if this matters.

Any suggestions would be helpfull

Answer : Access Database Out of Memory Error

I would import into a new MDB.  Sounds like the VBA project file is corrupt.  That may be due to one or more objects.

Import everything but forms and report, then do a half dozen/dozen forms at a time and compile after each.  You'll either make it through all, or pin it down to a couple of forms that are causing problems.

The only way to get those forms into a new MDB will to be do a save as text and then import text.   By doing that, you won't be reading the VBA source code in the original DB.

JimD.

Random Solutions  
 
programming4us programming4us