J
JimB
I'm trying to create a chart from a crosstab query that also uses the Master
and child link properties. Whenever I run the report, I get the error
message "Cannot use the crosstab of a non-fixed column as a sub-query".
If I run the report without the Master/Child link fields, it will display.
If I leave the links in, and open the report in design view, select the row
source of the chart object, view the underlying query and then do a print
preview the report displays perfectly with the correct chart displaying for
each record.
If, using code, I open the report in design view, and then modify the SQL
statement for the row source property of the chart, and then display the
report in preview mode, it runs fine. I can't get the report to run
correctly by just opening the report, or sending it to the printer.
The SQL statement used as the rowsource property is:
"TRANSFORM Sum(tblCrossVariance.[Total Of Hours]) AS [SumOfTotal Of Hours]
SELECT tblCrossVariance.Category, tblCrossVariance.LogicalGroupOfSitesID FROM
tblCrossVariance GROUP BY tblCrossVariance.Category,
tblCrossVariance.LogicalGroupOfSitesID PIVOT tblCrossVariance.ShortName;"
The Link Master Field is [ID]
The link child field is [LogicalGroupOfSitesID]
Does anyone have any idea what's going on here?
Thanks for you time.
Jim B.
and child link properties. Whenever I run the report, I get the error
message "Cannot use the crosstab of a non-fixed column as a sub-query".
If I run the report without the Master/Child link fields, it will display.
If I leave the links in, and open the report in design view, select the row
source of the chart object, view the underlying query and then do a print
preview the report displays perfectly with the correct chart displaying for
each record.
If, using code, I open the report in design view, and then modify the SQL
statement for the row source property of the chart, and then display the
report in preview mode, it runs fine. I can't get the report to run
correctly by just opening the report, or sending it to the printer.
The SQL statement used as the rowsource property is:
"TRANSFORM Sum(tblCrossVariance.[Total Of Hours]) AS [SumOfTotal Of Hours]
SELECT tblCrossVariance.Category, tblCrossVariance.LogicalGroupOfSitesID FROM
tblCrossVariance GROUP BY tblCrossVariance.Category,
tblCrossVariance.LogicalGroupOfSitesID PIVOT tblCrossVariance.ShortName;"
The Link Master Field is [ID]
The link child field is [LogicalGroupOfSitesID]
Does anyone have any idea what's going on here?
Thanks for you time.
Jim B.