Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How would you update the rowsource of a chart in a report?

Status
Not open for further replies.

johncasimir

Programmer
Jan 13, 2003
14
US
How would you update the rowsource of a chart in a report?

I get this Error:

Error #: 2455
You entered an expression that has an invalid reference to the property RowSource

Thanks,

John
 
eh, does a chart object have a rowsource property?

--------------------
Procrastinate Now!
 

Yes it does, but returns the error above when attempting to change the chart's rowsource in code when opening the report. (This problem does not happen for charts in forms)

Actually i've solved it by creating an active query (a query with a function) as the rowsource.

Strange about this error though... Would be great is someone could solve that problem

Thanks,

John
 
You haven't shown us your code so we can't help much. It is difficult to set the Row Source property just as it is difficult to set the Record Source property of a subreport in the On Open event of the main report.

I generally change the SQL property of the chart's row source query prior to opening the report.

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top