G
ge liu
Hi,
Could anyone tell me how to using visual basic code to set
the rowsource for a chart control? I tried to use this
type of statement:
me.controls("graph3").rowsource="select Jan03, Feb03,
March03 from sales_table"
But it does not work. When I run it in the Report_Open
event, it gives an error message saying that rowsource is
not a valid property. When I run it in the Detail_Format,
or Detail_Print events, it gives me a different error
message: "Run-time error 2191, You can't set the RowSource
Property after printing has started."
I WAS able to set the Rowsource property manually from the
property box. But I need to automate this using visual
Basic code, and in the Access Online Help, it says
rowsource CAN be set with Visual Basic. I wonder what is
the matter here.
Deos anyone know how to get around this?
Thanks a million!
Ge
Could anyone tell me how to using visual basic code to set
the rowsource for a chart control? I tried to use this
type of statement:
me.controls("graph3").rowsource="select Jan03, Feb03,
March03 from sales_table"
But it does not work. When I run it in the Report_Open
event, it gives an error message saying that rowsource is
not a valid property. When I run it in the Detail_Format,
or Detail_Print events, it gives me a different error
message: "Run-time error 2191, You can't set the RowSource
Property after printing has started."
I WAS able to set the Rowsource property manually from the
property box. But I need to automate this using visual
Basic code, and in the Access Online Help, it says
rowsource CAN be set with Visual Basic. I wonder what is
the matter here.
Deos anyone know how to get around this?
Thanks a million!
Ge