G
Guest
Hi All,
I have a question relating to a chart on a form. This question came up in a
prior post discussion I had with Rob Parker but I have decided to post as a
new question.
Basically I need to change the number of columns of data the chart is
showing, for example I have a Bar chart which shows sales by month & I need
to display count of sales by month as well. When I am in design mode on the
form & click on the chart I can manually change the Colomncount value. At run
time I get the following errors;
Me.OLEObjectName.Object.ColumnCount = 3 Give Error: 438 "Object doesn't
support this property or method
Me.OLEObjectName.ColumnCount = 3 Gives Error: 2448 "You can't assign a value
to this object"
* When I refer to the charts visibility, rowsource etc I use the
following(no errors);
Me.OLEObjectName.RowSource =""
* When I refer to the charts type, title etc I use the follwoing(no errors);
Public objMainChart As Graph.Chart
objMainChart..HasTitle = True
* I have a reference to "Microsoft Graph 11.0 Ojbect Library".
All the documentation says that the ColumnCount is not readonly & can be
changed. If someone has a work around or another method I would be forever in
your debt.
Thanks in advance.
Cheers,
Adam.
I have a question relating to a chart on a form. This question came up in a
prior post discussion I had with Rob Parker but I have decided to post as a
new question.
Basically I need to change the number of columns of data the chart is
showing, for example I have a Bar chart which shows sales by month & I need
to display count of sales by month as well. When I am in design mode on the
form & click on the chart I can manually change the Colomncount value. At run
time I get the following errors;
Me.OLEObjectName.Object.ColumnCount = 3 Give Error: 438 "Object doesn't
support this property or method
Me.OLEObjectName.ColumnCount = 3 Gives Error: 2448 "You can't assign a value
to this object"
* When I refer to the charts visibility, rowsource etc I use the
following(no errors);
Me.OLEObjectName.RowSource =""
* When I refer to the charts type, title etc I use the follwoing(no errors);
Public objMainChart As Graph.Chart
objMainChart..HasTitle = True
* I have a reference to "Microsoft Graph 11.0 Ojbect Library".
All the documentation says that the ColumnCount is not readonly & can be
changed. If someone has a work around or another method I would be forever in
your debt.
Thanks in advance.
Cheers,
Adam.