473,769 Members | 5,846 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

A97 form blows up, #258

Using A97, SP2, most current jet35.

I have a search form. The op enters an id to search/find. If found, a
data entry form is presented for that id. This form has 7 or 8 combos,
a bunch of textboxes, and some command buttons.

At the client site yesterday the user got a "too many databases open"
after entering a bunch of IDs into the search form. Later that day,
after entering a bunch more IDs, she got an out of memory error and the
combo boxes started asking for a parameter value in the data entry form
for the combo boxes. So I decided to test it out.

On my computer I modified the search form so that it would automatically
work down a list of table ids and open up the data entry form. The data
entry form would open, pause on a timer interval, then close...to be
opened by the next ID from the search form.

I sorted the records for the search form to use in a variety of sorts;
on the ID ascending, ID descending, on status code, and no sort. On
each one of these trials I always get prompted for a parameter for the
combox on the 258th data entry record. Without fail.

Normally the user gets into a form and leaves it. Has one ever
experienced a time when contant opening a form from another form without
closing the calling form many times over creates a problem? Any idea
what would cause my 258th opening of the form make it unstable?

Mar 12 '08 #1
3 1619
On Tue, 11 Mar 2008 17:23:02 -0700, Salad <oi*@vinegar.co mwrote:

I'm guessing you have a memory leak somewhere. Check your DAO or ADO
objects. Wasn't there also a problem with checkboxes in A97?
Make sure the value for currentdb.Recor dsets.Count does not increase.
You're not creating a new form object at each invocation, right? Make
sure the value for application.For ms.Count does not increase.

-Tom.

>Using A97, SP2, most current jet35.

I have a search form. The op enters an id to search/find. If found, a
data entry form is presented for that id. This form has 7 or 8 combos,
a bunch of textboxes, and some command buttons.

At the client site yesterday the user got a "too many databases open"
after entering a bunch of IDs into the search form. Later that day,
after entering a bunch more IDs, she got an out of memory error and the
combo boxes started asking for a parameter value in the data entry form
for the combo boxes. So I decided to test it out.

On my computer I modified the search form so that it would automatically
work down a list of table ids and open up the data entry form. The data
entry form would open, pause on a timer interval, then close...to be
opened by the next ID from the search form.

I sorted the records for the search form to use in a variety of sorts;
on the ID ascending, ID descending, on status code, and no sort. On
each one of these trials I always get prompted for a parameter for the
combox on the 258th data entry record. Without fail.

Normally the user gets into a form and leaves it. Has one ever
experienced a time when contant opening a form from another form without
closing the calling form many times over creates a problem? Any idea
what would cause my 258th opening of the form make it unstable?
Mar 12 '08 #2
Tom van Stiphout wrote:
On Tue, 11 Mar 2008 17:23:02 -0700, Salad <oi*@vinegar.co mwrote:

I'm guessing you have a memory leak somewhere. Check your DAO or ADO
objects. Wasn't there also a problem with checkboxes in A97?
Make sure the value for currentdb.Recor dsets.Count does not increase.
You're not creating a new form object at each invocation, right? Make
sure the value for application.For ms.Count does not increase.

-Tom.
Hi Tom:

In both Search and DataEntry forms I debug.printed
currentdb.Recor dsets.Count
application.For ms.Count
and recset count was always 0 and form count was 1 from Search and 2
from DataEntry.

I started slashing/burning calculated controls, then code, and my count
of opening the DE would increase...slig htly...but would still crash and
I'd still be prompted to enter a paramerter statements from one/more
of the combos.

I then kept opened entry form as original and deleted all combos. Some
combos were predicated upon the value of a master combo; display the
customer combo then display other combos for the contacts of various
contact types based on the customer ID. When I deleted all combos I was
able to enumerate thru the entire list.

Maybe my stress test stressed Access a bit too much by opening/closing
the form quickly. I've looked at the combos...all straightfoward
Select Custemer, custname from Customer Where CustType = 'C'"
and the contacts
Select ContactID, ContactName from Contact where CustomerID =
Forms!Form1!Cus tomerID

If I deleted all the combos based on a master combo list (contacts) and
kept just the main combo (customer), it would still freeze about 2/3
thru the list.

At this point I don't know if I have a memory leak. I set a
timerinterval in the search form. I have a checkbox in the search form.
If false, set to true and open form. Every second check and see if
true or false. In the DE I set the flag to false in the Close event.
Maybe the form wasn't entirely removed from memory when the search form
opened the entry form again...even tho the form/recset counts didn't
show a problem.

There's not much I can do about the combos. Thanks for response.
>

>>Using A97, SP2, most current jet35.

I have a search form. The op enters an id to search/find. If found, a
data entry form is presented for that id. This form has 7 or 8 combos,
a bunch of textboxes, and some command buttons.

At the client site yesterday the user got a "too many databases open"
after entering a bunch of IDs into the search form. Later that day,
after entering a bunch more IDs, she got an out of memory error and the
combo boxes started asking for a parameter value in the data entry form
for the combo boxes. So I decided to test it out.

On my computer I modified the search form so that it would automatically
work down a list of table ids and open up the data entry form. The data
entry form would open, pause on a timer interval, then close...to be
opened by the next ID from the search form.

I sorted the records for the search form to use in a variety of sorts;
on the ID ascending, ID descending, on status code, and no sort. On
each one of these trials I always get prompted for a parameter for the
combox on the 258th data entry record. Without fail.

Normally the user gets into a form and leaves it. Has one ever
experienced a time when contant opening a form from another form without
closing the calling form many times over creates a problem? Any idea
what would cause my 258th opening of the form make it unstable?
Mar 12 '08 #3
Salad <oi*@vinegar.co mwrote:
>Normally the user gets into a form and leaves it. Has one ever
experienced a time when contant opening a form from another form without
closing the calling form many times over creates a problem? Any idea
what would cause my 258th opening of the form make it unstable?
I had a similar problem in A97 quite a number of years ago. Thus I don't recall the
details. The solution was make non visible the called form and thus return back to
the calling form. Then when they opened the called form it made it visible. I
vagully recall I had to set some variables to null or 0 but otherwise that solution
worked.

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
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
Mar 15 '08 #4

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

Similar topics

7
2145
by: Geoff Cox | last post by:
Hello, I have been able to create a slider using Javascript code from the web but would like to send the slider values which are saved in an array to myself using email and the CGI/form approach. I'm not clear how to get the these array values into the form .. Hints/ideas please!
4
3174
by: Kathy | last post by:
What is the standard technique for handling the fields in the following scenario on a continuous form? Multiple Divisions. Each Division has multiple Buildings. Each Building has a Supervisor. Tables: (abbreviated) TblDivision DivisionID
1
1397
by: donjuan | last post by:
I'm porting an asp.net 1.1 app to asp.net 2.0 (july build) and I have a form in a page that's using a master page. The form inside a content placeholder looks like: <asp:Content ContentPlaceHolderID=cphMain runat=server> <form id=SomeForm runat=server> on the client, the browser renders: <form action=thisPage.aspx method=post id="aspnetForm">
4
2489
by: Alan Lambert | last post by:
Hi, I'm making various changes to the controls on a form and the form flickers as images are loaded etc. Is there a way to stop the form showing the updates until they have been completed? e.g. Form.Painting = False I'm sure this is very easy but I can't seem to find a way of doing it! Many thanks Alan
7
10160
by: needin4mation | last post by:
Hi, I have an Access 2002 - 2003 database. I am using Access 2003. Whenever I link an image all it shows is the filename. Not the image. Other versions of Access can link the image just fine. The properties look the same whether I use XP or 2003 versions of Office. If I take an earlier version of Access and link the image, it puts the image. I can also see the image in 2003. If I link the image using 2003 it only shows the filename....
0
2056
by: nicomp | last post by:
I created a Web Service: I imported System.Data.SqlClient so I could access SQL server tables programmatically. The web service builds and deploys with no problems. When I try to add the corresponding Web Reference to the Web Site project I get the error listed below. I am able to create other Web Services on the same server and I am able to add Web Referneces to them. I have narrowed it down to the "Imports System.Data.SqlClient"...
3
1162
by: Captain Midnight | last post by:
Hi Everyone! This is a great forum by the way.. Anyway, I have a PHP script, that gathers some basic information from a database and pre-populates a form for a user. The HTML that's generated looks something like this (to be brief): Source (with PHP variables) for the Submit looks something like this: <img src="/images/disk.gif" height="24" width="24" alt="Save" onclick="document.dnsform.edit.checked=true;...
0
1229
by: joshuajnoble | last post by:
Hi all, I'm having a strange problem where I need to build out form variables in an HTTPWebRequest and send them to an aspx page for processing. The page isn't recognizing the form variables at all, and the only thing I can attribute it to is that when the call works, the aspx page doesn't send a HTTP/1.1, Status Code = 100 response, i.e. the calls go like this: 29 1109.853516 192.168.1.108 206.71.164.82 HTTP HTTP: Request, POST /...
19
83794
by: sphinney | last post by:
My company is in the process of upgrading everyone to Access 2007. Since my machine was upgraded I've been highly frustrated with an apparent random behaviour byAccess that I can't understand. It involves databases that I created in Access 2002 (i.e. *.mdb files). What happens is when I open a form that has the border style property set to 'Dialog', Access 2007 is correctly preserving the size of the form itself (i.e. if you look in the...
0
9586
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10043
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9990
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9861
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8869
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5446
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3956
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3561
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2814
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.