M
Mishanya
I've created bar-chart showing payments in different currencies (variable
quantity) grouped by year and destined to be filtered by ClientID value. The
query-code under the chart is:
TRANSFORM Sum([qryPayments].PaymentValue) AS SumOfPaymentValue
SELECT (Format([PaymentDate],"YYYY")) AS Year
FROM [qryPayments]
GROUP BY (Format([PaymentDate],"YYYY")), [qryPayments].ClientID
PIVOT [qryPayments].CurrencySymbol;
Putting ClientID number as Criteria directly in the query-grid for a test
works OK.
Now I want to nest the chart into MyReport and link it by ClientID (MyReport
source is tblClientDetails, has ClientID control and is supposed to show data
only for one chosen client).
The initial nesting works OK - I get an aggregate chart for all the clients
in MyReport.
When I put [Reports]![MyReport]![ClientID] as criteria in the charts
query-grid and try to switch to the Preview mode, I get error msg: "The
Microsoft Jet database engine does not recognize
[Reports]![MyReport]![ClientID] as a valid field name or expression".
Alternatively, linking the chart to the report by chart' Master/Child
linking Property does let to switch to the Preview mode once, but when trying
to reopen the saved and closed report, I get error msg: "Cannot use the
crosstab of a non-fixed column as a subquery" (although hosting the same
chart only without linking to the ClientID control was not a problem).
How can I solve this?
quantity) grouped by year and destined to be filtered by ClientID value. The
query-code under the chart is:
TRANSFORM Sum([qryPayments].PaymentValue) AS SumOfPaymentValue
SELECT (Format([PaymentDate],"YYYY")) AS Year
FROM [qryPayments]
GROUP BY (Format([PaymentDate],"YYYY")), [qryPayments].ClientID
PIVOT [qryPayments].CurrencySymbol;
Putting ClientID number as Criteria directly in the query-grid for a test
works OK.
Now I want to nest the chart into MyReport and link it by ClientID (MyReport
source is tblClientDetails, has ClientID control and is supposed to show data
only for one chosen client).
The initial nesting works OK - I get an aggregate chart for all the clients
in MyReport.
When I put [Reports]![MyReport]![ClientID] as criteria in the charts
query-grid and try to switch to the Preview mode, I get error msg: "The
Microsoft Jet database engine does not recognize
[Reports]![MyReport]![ClientID] as a valid field name or expression".
Alternatively, linking the chart to the report by chart' Master/Child
linking Property does let to switch to the Preview mode once, but when trying
to reopen the saved and closed report, I get error msg: "Cannot use the
crosstab of a non-fixed column as a subquery" (although hosting the same
chart only without linking to the ClientID control was not a problem).
How can I solve this?