Tiro Cupidus
Registered User.
- Local time
- Today, 10:19
- Joined
- Apr 25, 2002
- Messages
- 263
I've searched old posts and used what I found, so please no "search for this" replies.
Here is the SQL for my crosstab:
<---
TRANSFORM IIf(IsNull(Count([qryTally].[Year])),0,Count([qryTally].[Year])) AS CountYear
SELECT tblMonths.Month, Count(qryTally.Year) AS Total
FROM tblMonths LEFT JOIN qryTally ON tblMonths.Month = qryTally.Month
WHERE qryTally.Year=fInputBox("FY")
GROUP BY tblMonths.Month, tblMonths.MonthID
ORDER BY tblMonths.MonthID
PIVOT qryTally.Type In ("FR","IAR","EAD");
--->
I have created a table with all 12 months listed in it, attempting to force the query to display data for each month, zeroes if there is no data. Right now it displays data only for October and November. Let me know if you need the SQL from qryTally.
Thanks for your help.
Here is the SQL for my crosstab:
<---
TRANSFORM IIf(IsNull(Count([qryTally].[Year])),0,Count([qryTally].[Year])) AS CountYear
SELECT tblMonths.Month, Count(qryTally.Year) AS Total
FROM tblMonths LEFT JOIN qryTally ON tblMonths.Month = qryTally.Month
WHERE qryTally.Year=fInputBox("FY")
GROUP BY tblMonths.Month, tblMonths.MonthID
ORDER BY tblMonths.MonthID
PIVOT qryTally.Type In ("FR","IAR","EAD");
--->
I have created a table with all 12 months listed in it, attempting to force the query to display data for each month, zeroes if there is no data. Right now it displays data only for October and November. Let me know if you need the SQL from qryTally.
Thanks for your help.