473,405 Members | 2,421 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Out of memory 64k when opening VBA from Form

Jan
I have a form with a large procedure in MS Access 2000. I had just
added some more code and performed Compress and Repair when the
following problem came up:
When I try to open the procedue from the form I get the error message
Out of memory, and the VBA window does not open.
I have tried to enlarge virtual memory and stacks, without this having
any effect. I therefore suspect that this is a problem due to the
procedure exceeding the 64k size limit. As I am not able to open the
procedure, I cannot make it smaller. Does anybody know how to gain
access to the procedure when this limit is overrun?
Nov 12 '05 #1
4 2699
Not sure if this will work or not. Make a new standard module and add the
following to it.

Finction GetMDLTest()
Dim mdl As Module
Dim mdlTxt As String
Dim LineCnt As Long

DoCmd.OpenForm "<name of table>", acDesign, , , , acHidden
Set mdl = Forms("<name of table>").Module
LineCnt = mdl.CountOfLines
mdlTxt = mdl.Lines(1, LineCnt)

Debug.Print mdlTxt

End Function

If it does not crash on you, then you should be able to open the Debug
window and then copy and paste the code.
If it does, not sure how to get at it, as it will need to be opened in
someway.

Mike Storr
www.veraccess.com
"Jan" <ob*@sorco.no> wrote in message
news:6a*************************@posting.google.co m...
I have a form with a large procedure in MS Access 2000. I had just
added some more code and performed Compress and Repair when the
following problem came up:
When I try to open the procedue from the form I get the error message
Out of memory, and the VBA window does not open.
I have tried to enlarge virtual memory and stacks, without this having
any effect. I therefore suspect that this is a problem due to the
procedure exceeding the 64k size limit. As I am not able to open the
procedure, I cannot make it smaller. Does anybody know how to gain
access to the procedure when this limit is overrun?

Nov 12 '05 #2

Mike,
thank you for your suggestion. I've tried it, but without success. When
running the function I get the following message "Error accessing file.
Network connection may have been lost." However, my Access database is
stored on and startet from my local harddrive... Copying the database to
other locations and PCs produced the same results.
Any ideas?
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #3
If you're doing this within the same database, then I don't have a clue.
I've never seen this before unless it's when trying to open external
databases. I fear it's become corrupted.
Sorry I can't be more help.
"Ørjan Brun-Henriksen" <ob*@sorco.no> wrote in message
news:40***********************@news.frii.net...

Mike,
thank you for your suggestion. I've tried it, but without success. When
running the function I get the following message "Error accessing file.
Network connection may have been lost." However, my Access database is
stored on and startet from my local harddrive... Copying the database to
other locations and PCs produced the same results.
Any ideas?
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 12 '05 #4
Ørjan Brun-Henriksen <ob*@sorco.no> wrote:
thank you for your suggestion. I've tried it, but without success. When
running the function I get the following message "Error accessing file.
Network connection may have been lost." However, my Access database is
stored on and startet from my local harddrive... Copying the database to
other locations and PCs produced the same results.


Ah, this is a bug within A2000. While there is a fix for the bug available by
downloading A2000 SP3 this MDB is now corrupt and unrecoverable. See the MS Fixes
page at my website for links to the downloadable file.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: JosR | last post by:
I have a memory problem when running a VB.Net application. The application uses a from frmMain from which another form can be opened: Private Sub OpenTheNewForm() dim frm as New frmSecondform...
1
by: Jan | last post by:
I have a form with a large procedure in MS Access 2000. I had just added some more code and performed Compress and Repair when the following problem came up: When I try to open the procedue from...
2
by: Dagoberto Aceves | last post by:
I have a program that is working as the front end to SQL Server. But I noticed that as the program runs, the momery use just keeps going up. At first, I thought it was that I was running it through...
2
by: Michael Maes | last post by:
Hi, We have been using ImageLists in our Projects extensively. Many forms have two ILs with nearly 900 bmp's each. They are configured: 32Bit, Fuchsia, 16x16 (and one 24x24). In VS2003 there...
2
by: lolarak_pandey | last post by:
hi, i have written a c# program ,in which i have multiple forms. when i start the application ,the main form opens ,from which iam calling another form using showdialog(this) method. after that...
2
by: Mike | last post by:
Hi, I am new to C and having problems with the following program. Basically I am trying to read some files, loading data structures into memory for latter searching. I am trying to use structres...
6
by: Bobby | last post by:
Hi, I'm not 100% sure that this is an Access problem. A friend of mine has an Access 2003 database. Occasionally he brings a copy to me so that I can import some of his data into my Access 2003...
2
by: mina | last post by:
hi i am using vb.net 2005 to my desktop application. my problem is like this when i am running my project it occupies 100% cpu at 1st form load. then again it release memory upto 95%. when i am...
0
by: djpaul | last post by:
Hello! I am getting this error when i open a new form into antoher form. System.AccesViolationException - Attempted to read or write protected memory. What i do is : Dim PrintView as new...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.