G
Guest
Howdy,
I'm using the following SQL to drive an Access Chart:
SELECT qry_Test_NormalizedSales1.Week AS Expr1,
Sum(qry_Test_NormalizedSales1.NWeekSales) AS SumOfNWeekSales
FROM qry_Test_NormalizedSales1
GROUP BY qry_Test_NormalizedSales1.Week, qry_Test_NormalizedSales1.sCliNum,
[sCoNum] & [sLoanNum]
HAVING (((qry_Test_NormalizedSales1.Week) Between
[Forms]![frm_ChartMaster]![FromDate] And [Forms]![frm_ChartMaster]![ToDate])
AND
((qry_Test_NormalizedSales1.sCliNum)=[Forms]![frm_ChartMaster]![ClientSelect]) AND (([sCoNum] & [sLoanNum])=[Forms]![frm_ChartMaster]![CoNum]));
What I'm tring to do is replace the Filed [NWeekSales] something like:
Metric: [Forms]![frm_ChartMaster]![Combo19]
Which will allow the user to select which of the available metrics, he/she
would like to graph.
I also tried:
Metric: "["&[Forms]![frm_ChartMaster]![Combo19]&"]"
Which didn't work either. The error I receive is the : "The Expressiis
typed incorrectly or is too complex to be evaluated."
Any help would be greatly appreciated.
I'm using the following SQL to drive an Access Chart:
SELECT qry_Test_NormalizedSales1.Week AS Expr1,
Sum(qry_Test_NormalizedSales1.NWeekSales) AS SumOfNWeekSales
FROM qry_Test_NormalizedSales1
GROUP BY qry_Test_NormalizedSales1.Week, qry_Test_NormalizedSales1.sCliNum,
[sCoNum] & [sLoanNum]
HAVING (((qry_Test_NormalizedSales1.Week) Between
[Forms]![frm_ChartMaster]![FromDate] And [Forms]![frm_ChartMaster]![ToDate])
AND
((qry_Test_NormalizedSales1.sCliNum)=[Forms]![frm_ChartMaster]![ClientSelect]) AND (([sCoNum] & [sLoanNum])=[Forms]![frm_ChartMaster]![CoNum]));
What I'm tring to do is replace the Filed [NWeekSales] something like:
Metric: [Forms]![frm_ChartMaster]![Combo19]
Which will allow the user to select which of the available metrics, he/she
would like to graph.
I also tried:
Metric: "["&[Forms]![frm_ChartMaster]![Combo19]&"]"
Which didn't work either. The error I receive is the : "The Expressiis
typed incorrectly or is too complex to be evaluated."
Any help would be greatly appreciated.