ACC2000: How to Use the Circle Method on a ReportID: q210365
|
This article shows you how to use the Circle method to create a filled-in "pie slice" on a report.
The following sample, user-defined function, PIE(), can be called from an event property in the detail section of a report. The function uses the Circle method to create a filled-in "pie slice" on the report:
Function PIE(Rpt as Report)
Const PI = 3.14159265359
Const CStart = -.00000001
Const CEnd = -2 * PI / 6
Rpt.FillColor = RGB(255, 0, 0)
Rpt.FillStyle = 0
Rpt.Circle (1500, 1500), 1500, RGB(0, 255, 0), Cstart, CEnd
End Function
=PIE([Reports]![TestReport])
For more information about the Circle method, in the Visual Basic Editor, click
Microsoft Visual Basic Help on the Help menu, type "Circle Method" in
the Office Assistant or the Answer Wizard, and then click Search to
view the topic.
Additional query words:
Keywords : kbprg kbdta AccCon RptEvent
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: May 21, 1999