Access wizards,
I am currently having a problem when trying to automatically set the minimum and maximum scale values on the axis of a chart on an Access Form. Here is the VBA code I have thus far:
Forms![SawToothPilot]![GraphByItemNum].Object.Application.Chart.Axes(xlSecondary).MinimumScale = 3
I know you can set the scale values manually, but eventually, I need to have similar code so I can dynamically set scale values based on query results.
Anytime this code executes I get the following error:
Run Time Error '1004': Unable to set the MinimumScale property of the Axis class.
Please advise.
Thanks,
Kevin.
I am currently having a problem when trying to automatically set the minimum and maximum scale values on the axis of a chart on an Access Form. Here is the VBA code I have thus far:
Forms![SawToothPilot]![GraphByItemNum].Object.Application.Chart.Axes(xlSecondary).MinimumScale = 3
I know you can set the scale values manually, but eventually, I need to have similar code so I can dynamically set scale values based on query results.
Anytime this code executes I get the following error:
Run Time Error '1004': Unable to set the MinimumScale property of the Axis class.
Please advise.
Thanks,
Kevin.