Recently whenever I test run my program, and try to invoke VBA editor, my system (Windows Me with 386 MB RAM) isssued me an “Out of Memory” warning, and I couldn’t run the VBA editor. I still have more than 100 MB free memory then! My program consists of only a front-end (7600 KB) and a test back-end (956 KB). It runs well on another Windows98 machine with 256 MB RAM. Why gives?
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
VBA Out of memory (2000 (SR-1))
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » VBA Out of memory (2000 (SR-1))
- This topic has 8 replies, 6 voices, and was last updated 22 years, 10 months ago.
Viewing 1 reply threadAuthorReplies-
WBell
AskWoody_MVPJuly 14, 2002 at 10:38 pm #601088This sounds suspiciously like either something is hosed with the VB6.dll file, or you have a set of code running somewhere that hasn’t gotten turned off. I would look at the VB6 issue first. Have you installed any software recently? There are several products that apparently put an incompativle version of the VB files on your hard drive and replace things without asking or telling you.
-
WSlesoch
AskWoody LoungerJuly 16, 2002 at 11:11 pm #601634I disabled or closed the five resident launchers in my system – GetRight, ZoneAlarm, PGP, MemTurbo and Norton Antiirus Auto-Protect – and re-started my Access 2K. After loading my database, I managed to use VBA editor for a while. After I added more codes and objects to my database, again the warning “Out of Memory” appeared when I tried to access the VBA editor. I didn’t install any new programs for the past three months except Windows and Norton Virus pattern updates, which were periodically run when I was connected to the Internet.
I remembered reading about the maximum size of data Access can process, but I have yet to come across any mention of the limitation on codes and objects in an Access database. Is there a maximum size to the codes and objects which Access can manage before the dreadful “Out of Memory” alarm?
-
WSnevwill
AskWoody Lounger -
WBell
AskWoody_MVPJuly 17, 2002 at 10:05 am #601699Check out MS knowledge base article Q223235 – it sounds very similar to your problem. The solution appears to be to import all the objects into a new database and then close a code window after editing. We work with some projects with hundreds of modules, so I doubt you’ve hit any Access size constraints – to see what those are for 2000, search Help for “specifications”
-
-
-
WSSupport4John
AskWoody LoungerJuly 17, 2002 at 11:55 pm #601842Hi lesoch
I have your same configuration and get the same message.
It usually occurs in the middle of the day after tasking between a2k, word, aol, etc.
I close all apps and shutdown and restart the system to continue without message.
Wendells solution will works as well.
Charlotte talks about leaky code that can cause problems, Do a search on leaky
Others say when you task between Office modules billy bob does a terrible job reclaiming memory.
Hope others can respond, out of memory gets scary.
HTH
re: 104429 from Support4John
-
WSlesoch
AskWoody LoungerJuly 18, 2002 at 8:12 pm #602035Surely “Out of Memory” alarm is scary. I checked the KB article suggested by Wendell (thanks) and it appeared that the problem is limited to Access 2K and VBA editor. It never occurred to me that I need to close the code windows each time I open one to save system resources. I was under the impression that only a code window was opened when I used the VBA editor. I closed my code windows and mentally calculated that I closed a total 63 code windows. After closing all the code windows, the database ran a little faster but there was no guarantee that the scary alarm message won’t reappear. In fact it did!
I checked my codes and all my recordsets, and workspaces were closed and set to nothing before exiting. There is no possibility of memory leakage, I think. But closing ZoneAlarm, Norton Auto-Protect and MemTurbo to reclaim memory rersources also helped to make “Out of Memory” disappear. I wonder if others have similar experience.
-
WSMarkD
AskWoody LoungerJuly 18, 2002 at 11:50 pm #602086You had 63 code windows open??!!
Back a while ago WMVP Kevin posted some simple but very useful code in the VB/VBA forum that closes all open code windows in the VB Editor. Link:
You may want to copy this code to standard module and run as often as necessary. In VBE you can run any public sub from the Tools>Macros menu (macro here as in Word or Excel, not Access, sense).
-
WScharlotte
AskWoody LoungerJuly 19, 2002 at 12:51 am #602103If you had 63 code windows open, I’m not at all surprised you got an out of memory message. Did you also have 63 forms or reports open in the UI? It is possible to generate a bogus out of memory message, but in this case, I’d say it was entirely truthful. Say rather that the problem is new to Access 2000 because of the change to the VBE.
-
-
Viewing 1 reply thread -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Windows 11 Insider Preview Build 26100.4188 (24H2) released to Release Preview
by
joep517
50 minutes ago -
Microsoft is now putting quantum encryption in Windows builds
by
Alex5723
1 hour, 44 minutes ago -
Auto Time Zone Adjustment
by
wadeer
5 hours, 19 minutes ago -
To download Win 11 Pro 23H2 ISO.
by
Eddieloh
2 hours, 59 minutes ago -
Manage your browsing experience with Edge
by
Mary Branscombe
2 hours, 11 minutes ago -
Fewer vulnerabilities, larger updates
by
Susan Bradley
1 hour, 18 minutes ago -
Hobbies — There’s free software for that!
by
Deanna McElveen
2 hours, 9 minutes ago -
Apps included with macOS
by
Will Fastie
3 hours ago -
Xfinity home internet
by
MrJimPhelps
2 hours, 4 minutes ago -
Convert PowerPoint presentation to Impress
by
RetiredGeek
30 minutes ago -
Debian 12.11 released
by
Alex5723
1 day, 2 hours ago -
Microsoft: Troubleshoot problems updating Windows
by
Alex5723
1 day, 6 hours ago -
Woman Files for Divorce After ChatGPT “Reads” Husband’s Coffee Cup
by
Alex5723
9 hours, 35 minutes ago -
Moving fwd, Win 11 Pro,, which is best? Lenovo refurb
by
Deo
1 hour, 59 minutes ago -
DBOS Advanced Network Analysis
by
Kathy Stevens
1 day, 23 hours ago -
Microsoft Edge Launching Automatically?
by
healeyinpa
1 day, 13 hours ago -
Google Chrome to block admin-level browser launches for better security
by
Alex5723
2 days, 1 hour ago -
iPhone SE2 Stolen Device Protection
by
Rick Corbett
1 day, 18 hours ago -
Some advice for managing my wireless internet gateway
by
LHiggins
1 day, 1 hour ago -
NO POWER IN KEYBOARD OR MOUSE
by
HE48AEEXX77WEN4Edbtm
3 hours, 30 minutes ago -
A CVE-MITRE-CISA-CNA Extravaganza
by
Nibbled To Death By Ducks
2 days, 11 hours ago -
Sometimes I wonder about these bots
by
Susan Bradley
2 days, 7 hours ago -
Does windows update component store “self heal”?
by
Mike Cross
1 day, 21 hours ago -
Windows 11 Insider Preview build 27858 released to Canary
by
joep517
3 days, 1 hour ago -
Pwn2Own Berlin 2025: Day One Results
by
Alex5723
1 day, 9 hours ago -
Windows 10 might repeatedly display the BitLocker recovery screen at startup
by
Susan Bradley
21 hours, 46 minutes ago -
Windows 11 Insider Preview Build 22631.5409 (23H2) released to Release Preview
by
joep517
3 days, 3 hours ago -
Windows 10 Build 19045.5912 (22H2) to Release Preview Channel
by
joep517
3 days, 3 hours ago -
Kevin Beaumont on Microsoft Recall
by
Susan Bradley
2 days, 16 hours ago -
The Surface Laptop Studio 2 is no longer being manufactured
by
Alex5723
3 days, 12 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.