ACC2000: Opening and Closing a Form Hundreds of Times Noticeably Affects System Resources (248910)
The information in this article applies to:
This article was previously published under Q248910 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
SYMPTOMS
In a Microsoft Access database or project running on Microsoft Windows 95 or Microsoft Windows 98 in which a form is opened and closed hundreds of times during the same session, the system becomes slow to respond, and you may see the following error messages:
There isn't enough memory to update the display. Close unneeded programs and try again.
Microsoft Access was unable to create a window. The system is out of resources or memory. Close unneeded programs and try again.
For more information on freeing memory, search the Microsoft Windows Help index for 'memory, troubleshooting'.
CAUSE
Each time that an Access form is opened and closed in Windows 95 or Windows 98, a small amount of System GDI resources used for fonts is taken and not released. This goes unnoticed in most situations; however, if you have a database that stays open for long periods of time, such as in a 24x7 environment, and a form in that database is repeatedly opened and closed perhaps hundreds of times, you may eventually see performance problems or out-of-memory errors. The number of times that you can open a form before you see this behavior varies because it depends upon the complexity of the form and also what other programs may be running in Windows.
NOTE: The number of times that you can open and close a form before you see these symptoms is smaller for some international versions of Access 2000 that are more font intensive, such as Chinese; therefore, you may see this problem more frequently in these versions.
RESOLUTION
To resolve this problem, obtain Microsoft Office 2000 Service Release 1/1a (SR-1/SR-1a).
To obtain SR-1/SR-1a, click the article number below to view the article in the Microsoft Knowledge Base:
245025 OFF2000: How to Obtain and Install Microsoft Office 2000 Service Release 1/1a (SR-1/SR-1a)
To temporarily work around this problem, free system resources. To do so, close all instances of Access, and then reopen the database. NOTE: This issue does not occur in Windows NT or Windows 2000.
If you are automating the opening and closing of a form repeatedly with the SendKeys method, you should instead use the DoCmd.OpenForm and DoCmd.CloseForm methods. These methods do not cause this behavior.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
This problem was corrected in Microsoft Office 2000 SR-1/SR-1a.
Modification Type: | Major | Last Reviewed: | 11/25/2002 |
---|
Keywords: | kbbug kberrmsg KB248910 |
---|
|