ACC2: Cannot Display More Than Four Graph Objects at OnceID: Q114729
|
Advanced: 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.
In 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.
Limit 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.
This behavior no longer occurs in Microsoft Access version 7.0.
Me!Embedded13.RowSource = "SELECT DISTINCTROW_
Format([Order Date], ""MMM \'YY"") AS [Sales for 1992], _
SUM([Sales by Product].[Product Amount]) AS [Product Amount]_
FROM [Sales by Product] WHERE [Order Date] BETWEEN _
#1/1/92# AND #12/31/92# GROUP BY Year([Order Date])*12_
+Month([Order Date])-1, Format([Order Date], ""MMM \'YY"");"
Me!Embedded13.RowSource = "SELECT DISTINCTROW_
Format([Order Date], ""MMM \'YY"") AS [Sales for 1993], _
SUM([Sales by Product].[Product Amount]) AS [Product Amount]_
FROM [Sales by Product] WHERE [Order Date] BETWEEN _
#1/1/93# AND #12/31/93# GROUP BY Year([Order Date])*12_
+Month([Order Date])-1, Format([Order Date], ""MMM \'YY"");"
Microsoft Access "User's Guide," version 2.0, Chapter 19, "Using Pictures, Graphs, and Other Objects," pages 478-483
Additional query words: memory
Keywords : kberrmsg kbtool IntpGrph
Version : 2.0
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: April 3, 1999