ACC: How to Format a Label for Each Axis of a GraphID: Q147193
|
Moderate: Requires basic macro, coding, and interoperability skills.
The Microsoft Access Chart Wizard (or Graph Wizard in Microsoft Access
version 2.0) enables you to format a label for each axis of a chart. You
can modify the label formats in Microsoft Graph and then save those changes
for later use. Under certain circumstances, however, it is not possible to
simply reformat the data in Microsoft Graph. To resolve this situation, you
should apply the desired formatting before the information is sent to the
chart.
NOTE: A demonstration of the technique used in this article can be seen
in the sample file, Grphsm97.exe. For information about how to obtain
this sample file, please see the following article in the Microsoft
Knowledge Base:
Q186855 ACC97: Microsoft Access 97 Sample Graphs Available on MSL
When a chart is created, the nature of the chart and/or the type of
grouping may require a temporary modification of the data that is sent to
the chart.
This modification takes place in the SQL statement that is generated for
the chart by the Chart Wizard. In the example cited for this article, a
Date field is converted to an integer number using the Year() function.
Because this data is no longer a Date data type, it cannot be formatted
using the available Date formats.
When a chart is created using the Chart Wizard, an SQL statement is built.
This statement is placed in the RowSource property of the chart object.
Each time the form or report in which the chart resides is refreshed, the
SQL statement is re-executed and the results are sent to Microsoft Graph.
89, 90, 91, 92
93, 94, 95
94, 95, 96
For more information about editing graphs, search the Help Index for
"Graphs," or ask the Microsoft Access 97 Office Assistant.
For more information about this subject in Microsoft Access 1.x, please see
the following article in the Microsoft Knowledge Base:
Q99398 ACC1x: Formatting a Label for Each Axis of a Graph
Additional query words: charts
Keywords : kbtool IntpGrph
Version : 2.0 7.0 97
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: April 23, 1999