J
JohnLute
I use this Row Source for a report chart:
SELECT (Format([DateReceived],"mmm"" '""yy")) AS DateReceived1,
Sum(qryCompsFacsMonths.TotalComps) AS SumOfTotalComps1
FROM qryCompsFacsMonths
WHERE (((qryCompsFacsMonths.DateReceived) Between
DateSerial(Year(Date()),Month(Date())-11,1) And
DateSerial(Year(Date()),Month(Date())+1,0)))
GROUP BY (Format([DateReceived],"mmm"" '""yy")),
(Year([DateReceived])*12+Month([DateReceived])-1)
ORDER BY (Year([DateReceived])*12+Month([DateReceived])-1);
This works well and I'm trying to get another chart to do the same however
it's not behaving. This is its Row Source:
SELECT (Year([ProdDate1])*12+Month([ProdDate1])-1) AS Expr1,
qryCompsFacsPerMonthSum100M.Per100MSum
FROM qryCompsFacsPerMonthSum100M
WHERE (((qryCompsFacsPerMonthSum100M.ProdDate1) Between
DateSerial(Year(Date()),Month(Date())-11,1) And
DateSerial(Year(Date()),Month(Date())+1,0)))
GROUP BY (Year([ProdDate1])*12+Month([ProdDate1])-1),
qryCompsFacsPerMonthSum100M.Per100MSum
ORDER BY (Year([ProdDate1])*12+Month([ProdDate1])-1);
This returns no records. I suspect that there's a clash with [ProdDate1]...?
Thanks for your help!
SELECT (Format([DateReceived],"mmm"" '""yy")) AS DateReceived1,
Sum(qryCompsFacsMonths.TotalComps) AS SumOfTotalComps1
FROM qryCompsFacsMonths
WHERE (((qryCompsFacsMonths.DateReceived) Between
DateSerial(Year(Date()),Month(Date())-11,1) And
DateSerial(Year(Date()),Month(Date())+1,0)))
GROUP BY (Format([DateReceived],"mmm"" '""yy")),
(Year([DateReceived])*12+Month([DateReceived])-1)
ORDER BY (Year([DateReceived])*12+Month([DateReceived])-1);
This works well and I'm trying to get another chart to do the same however
it's not behaving. This is its Row Source:
SELECT (Year([ProdDate1])*12+Month([ProdDate1])-1) AS Expr1,
qryCompsFacsPerMonthSum100M.Per100MSum
FROM qryCompsFacsPerMonthSum100M
WHERE (((qryCompsFacsPerMonthSum100M.ProdDate1) Between
DateSerial(Year(Date()),Month(Date())-11,1) And
DateSerial(Year(Date()),Month(Date())+1,0)))
GROUP BY (Year([ProdDate1])*12+Month([ProdDate1])-1),
qryCompsFacsPerMonthSum100M.Per100MSum
ORDER BY (Year([ProdDate1])*12+Month([ProdDate1])-1);
This returns no records. I suspect that there's a clash with [ProdDate1]...?
Thanks for your help!