rowsource is missing?- strange error msg!!
I am attempting to use VBA to change the rowsource on a chart.
The code is like this:
Private Sub Report_Open(Cancel As Integer)
Me.[ChartOLEUnbound].[RowSource] = SQLCode
End Sub
I am 100% sure that the SQL code is correct and I have tested it in other queries.
The program complains that there is no such property as RowSource, but it does exist -- it can be easily modified through the property menu!
The error: Runtime error '2455' - You entered an expression that has an invalid reference to the property RowSource. The property may not exist or may not apply to the object your specified.
How do I use RowSource in VBA?
I am attempting to use VBA to change the rowsource on a chart.
The code is like this:
Private Sub Report_Open(Cancel As Integer)
Me.[ChartOLEUnbound].[RowSource] = SQLCode
End Sub
I am 100% sure that the SQL code is correct and I have tested it in other queries.
The program complains that there is no such property as RowSource, but it does exist -- it can be easily modified through the property menu!
The error: Runtime error '2455' - You entered an expression that has an invalid reference to the property RowSource. The property may not exist or may not apply to the object your specified.
How do I use RowSource in VBA?
Last edited: