ACC: How to Set Graph Trend Lines Using AutomationLast reviewed: August 28, 1997Article ID: Q154581 |
The information in this article applies to:
SUMMARYAdvanced: Requires expert coding, interoperability, and multiuser skills. This article demonstrates how to use Automation to add, remove, and set trend lines on a Microsoft Graph object. This article assumes that you are familiar with Visual Basic for Applications and with creating Microsoft Access applications using the programming tools provided with Microsoft Access. For more information about Visual Basic for Applications, please refer to your version of the "Building Applications with Microsoft Access" manual.
MORE INFORMATIONDifferent types of trend measurements exist. You can select a specific trend to use in your graph using the Type property. You can also use the Add method to add trend lines to your graph, or use the Delete method to remove trend lines. Trend lines only apply to two-dimensional graphs of type "Bar," "Column," "Line," and "Scatter." The following examples use a bar graph.
Example - Add a Trendline and set its TypeThe following example adds a trend line to the first series of data and sets it to be of type Polynomial:
Example - Remove a Data Series TrendlineThe following example removes the trend line from the first series of data being graphed in the earlier example:
REFERENCESFor information about obtaining a Help file for Microsoft Graph, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q128364 TITLE : Microsoft Graph VBA Help File Available on MSLFor more information about trend lines, search the Help Index in the Microsoft Graph VBA Help file for "Trendline object." For more information about Automation, search the Help Index for "Automation." For information about obtaining a Help file with examples of Automation between Microsoft Access and Microsoft Graph, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q148124 TITLE : OLE Automation Help File (95) Available on MSL |
Additional query words: regression OLE
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |