Article ID: 154583
Article Last Modified on 1/19/2007
186855 ACC97: Microsoft Access 97 Sample Graphs Available in Download Center
Command button
--------------
Caption: Rotate Graph
OnClick: =RotateGraph()
Function RotateGraph()
Dim OldRotation As Integer
Dim NewRotation As Integer
Dim GraphObj As Object
Set GraphObj = Me![MyGraph].Object.Application.Chart
' Determine the initial rotation setting.
OldRotation = GraphObj.Rotation
' Rotate graph from initial setting to 360 degrees.
For NewRotation = OldRotation To 360 Step 12
GraphObj.Rotation = NewRotation
If GraphObj.Rotation = 360 Then GraphObj.Rotation = 0
DoEvents
DoCmd.RepaintObject
Next
End Function
128364 Microsoft Graph VBA Help File Available in Download Center
148124 ACC95: OLE Automation Help File Available in Download Center
Keywords: kbhowto kbinterop kbprogramming KB154583