M
Mike
As suggested by 'SA' of 'ACG Soft' in another post under 'Flexible default
y-axis labels in Microsoft Graph', I tried the following code to try to
programmatically control the X-Axis scale of a chart in an MS Access 2003
report. I get an 'Object doesn't support this property or method' error on
the 'Set objAxis = ...' line. I also tried using the ADO 2.8 Library instead
of the already selected ADO 2.5 Library reference.
Any suggestions? Thanks in advance!
**** Suggested Code ****
Dim objGraph as Object
Dim objAxis as Object
Set objGraph = Me!NameOfYourGraphObject
Set objAxis = objGraph.Axis(2) 'Y Axis
With objAxis
.MinimumScale = YourMinimumValue
.MaximumScale = YourMaximumValue
.MajorUnitScale = SomeVale
End With
y-axis labels in Microsoft Graph', I tried the following code to try to
programmatically control the X-Axis scale of a chart in an MS Access 2003
report. I get an 'Object doesn't support this property or method' error on
the 'Set objAxis = ...' line. I also tried using the ADO 2.8 Library instead
of the already selected ADO 2.5 Library reference.
Any suggestions? Thanks in advance!
**** Suggested Code ****
Dim objGraph as Object
Dim objAxis as Object
Set objGraph = Me!NameOfYourGraphObject
Set objAxis = objGraph.Axis(2) 'Y Axis
With objAxis
.MinimumScale = YourMinimumValue
.MaximumScale = YourMaximumValue
.MajorUnitScale = SomeVale
End With