Hi All,
I have been looking at this problem for a couple of days and I have run out of hair to pull out!
I have created a report that has two groups Customer and Product
i.e. The group header 1 is for customer and group header 2 is for product type
The detail looks at the QA problem with each Customer/product.
The report record source has a SQL query sent to it via VBA. No problems yet. The report shows all the data. The problem is I need to summarise the data in a graph. One graph for each occurance of Customer/Product.
I have put a graph in the section header of the Product. And for the live of me I cannot reference it.
If use
This does not work.I get an invalid reference error. BUT, If I move the graph g_fault to the Section above this level, then it will work. If I use
Again I get an error. I have tried using different numbers for section i.e. .Section(7) acGroupLevel2Header but this has not worked either
Question: how do I reference the graph so I can change its row source?
(And if I do, will I be able to change the graph for every occurance of this section in the report?) (I thought about refreshing the data using the on Print method)
I need to produce a graph for a summary of each detail section.
Any suggestions? Please...
Thanks in advance
TimW
I have been looking at this problem for a couple of days and I have run out of hair to pull out!
I have created a report that has two groups Customer and Product
i.e. The group header 1 is for customer and group header 2 is for product type
The detail looks at the QA problem with each Customer/product.
The report record source has a SQL query sent to it via VBA. No problems yet. The report shows all the data. The problem is I need to summarise the data in a graph. One graph for each occurance of Customer/Product.
I have put a graph in the section header of the Product. And for the live of me I cannot reference it.
If use
Code:
Reports!rptFaultByClassification_Detail!g_fault.RowSource = strSQLgraph
Code:
Reports!rptFaultByClassification_Detail.Section("group_MeterType")!g_fault.RowSource = strSQLgraph
Question: how do I reference the graph so I can change its row source?
(And if I do, will I be able to change the graph for every occurance of this section in the report?) (I thought about refreshing the data using the on Print method)
I need to produce a graph for a summary of each detail section.
Any suggestions? Please...
Thanks in advance
TimW