Article ID: 158927
Article Last Modified on 1/19/2007
186855 ACC97: Microsoft Access 97 Sample Graphs Available in Download Center
Macro Name Action
-----------------------
RptGraph Echo
OpenReport
SetValue
RunCommand (or DoMenuItem in versions 2.0 and 7.0)
OpenReport
Echo
RptGraph Actions
------------------------------------------------------------
Echo
Echo On: No
OpenReport
Report Name: OrdersPerEmployee
View: Design
SetValue
Item: Reports!OrdersPerEmployee!GraphTest.RowSource
Expression: "SELECT [EmployeeID], Count([OrderID]) as _
[Number of Orders] FROM [Orders] where [CustomerID] = _
Forms!Customers![CustomerID] GROUP BY [EmployeeID];"
In Microsoft Access 97 only, use the following Runcommand:
RunCommand
Command: Save
In Microsoft Access 2.0 and 7.0 only, use the following DoMenuItem:
DoMenuItem
Menu Bar: Report
Menu Name: File
Command: Save
OpenReport
Report Name: OrdersPerEmployee
View: Print Preview
Echo
Echo On: Yes
Command Button
--------------
Name: OpenReport
Caption: Preview Graph
OnClick: RptGraphKeywords: kbhowto kbinterop kbprogramming KB158927