how to set the rowsource for a chart using viusal basic code?

G

ge liu

Hi,

Could anyone tell me how to set the rowsource for a chart
in an access report using visual basic code?

I used this type of code:

me.controls("graph3").rowsource="select Jan03, Feb03,
Mar03 from sales_table"

But this does not work. The access does not recognize
rowsource as a properties for my chart "graph3",
eventhough it is listed in the property box. Could anyone
tell me how to solve this?

Thanks

Ge
 
Top