Article ID: 154581
Article Last Modified on 1/19/2007
186855 ACC97: Microsoft Access 97 Sample Graphs Available in Download Center
Command button:
Caption: Add Trend Line
OnClick: =AddTrendLine()
Function AddTrendLine()
Dim GraphObj As Object
Set GraphObj = Me![MyGraph].Object.Application.Chart
GraphObj.SeriesCollection(1).TrendLines.Add
GraphObj.SeriesCollection(1).TrendLines(1).Type = 3
End Function
Command button:
Caption: Remove Trend Line
OnClick: =RemoveTrendLine()
Function RemoveTrendLine()
Dim GraphObj As Object
Set GraphObj = Me![MyGraph].Object.Application.Chart
GraphObj.SeriesCollection(1).TrendLines(1).Delete
End Function
128364 Microsoft Graph VBA Help File Available in Download Center
148124 ACC95: OLE Automation Help File Available in Download Center
Additional query words: regression OLE
Keywords: kbhowto kbinterop kbprogramming KB154581