ACC2: Cannot Display More Than Four Graph Objects at OnceLast reviewed: May 7, 1997Article ID: Q114729 |
The information in this article applies to:
SYMPTOMSAdvanced: Requires expert coding, interoperability, and multiuser skills. When you open a form or preview a report that contains more than four Microsoft Graph version 5.0 objects, you may receive the following error message:
Not enough memory to complete the operation on the OLE object.NOTE: You may have been able to open the form or preview the report in Microsoft Access version 1.x without any error messages.
CAUSEIn Microsoft Access version 2.0, displaying each unbound Graph 5.0 object requires approximately 10% of system resources. This limits the number of graphs that you can display at one time to three or four (the actual limit is determined by the resources available in a particular system). Activating a graph object in-place takes approximately 15% of the available system resources. For performance reasons, once a graph is activated in-place, the instance of Microsoft Graph 5.0 that was started to support the editing remains in memory until the form is closed. This limits the number of graphs that can be activated to three.
RESOLUTIONLimit the number of graphs on a single page to four. Reduce that number to three in forms where in-place activation of the graphs will take place. If the graphs are not based on data that will change, convert them to pictures or store them in tables. More than four bitmaps or bound graphs can be displayed on a single page. If multiple graphs overlap on a form or report but only one is shown at a time, consider using only one graph object and setting its row source with code each time a different set of data is shown. For a detail description of how to do so, see the "Workaround" section later in this article.
STATUSThis behavior no longer occurs in Microsoft Access version 7.0.
MORE INFORMATION
Steps to Reproduce Behavior
WorkaroundCAUTION: Following the steps in this example will modify the sample database NWIND.MDB. You may want to back up the NWIND.MDB file, or perform these steps on a copy of the NWIND database. The following example demonstrates how to modify the Sales By Product form in the sample database NWIND.MDB so that you can choose between a graph showing sales by month for 1992 and a graph showing sales by month for 1993:
REFERENCESMicrosoft Access "User's Guide," version 2.0, Chapter 19, "Using Pictures, Graphs, and Other Objects," pages 478-483
|
Additional query words: memory
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |