F
Floppy
Guest
How to display rows w/no data in query?
I have a crosstab query that produces 14 columns and a variable number of rows.
The columns are as follows:
Col 1: Data values in table
Col 2: Total of columns 3-14 in the row
Columns 3-14: Jan, Feb, Mar, Apr, etc (months of the year)
The number of rows maxes out at 9, which is the number of values permitted in the data field of the table. Example is:
FCD
FPA
FPO
MPR
etc.
Early in the year, if the table containing the data has no entries for certain values, such as FPA, then the displayed query lacks that row: An example would be where we have not yet entered FPO as a field value for 2003 records, it would look like:
FCD
FPA
MPR
etc.
Is there a way to force display of the FPO row even though there are no FPO values in the filtered query?
The SQL statement I created reads:
TRANSFORM Count(qryIntakeForm.IntakeDate) AS CountOfIntakeDate
SELECT qryIntakeForm.SupervisionType, Count(qryIntakeForm.IntakeDate) AS [Total Of IntakeDate]
FROM qryIntakeForm
WHERE (((qryIntakeForm.IntakeDate) Between #1/1/2003# And #12/31/2003#))
GROUP BY qryIntakeForm.SupervisionType
PIVOT Format([IntakeDate],"mmm") In ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
Thanks,
Flop
I have a crosstab query that produces 14 columns and a variable number of rows.
The columns are as follows:
Col 1: Data values in table
Col 2: Total of columns 3-14 in the row
Columns 3-14: Jan, Feb, Mar, Apr, etc (months of the year)
The number of rows maxes out at 9, which is the number of values permitted in the data field of the table. Example is:
FCD
FPA
FPO
MPR
etc.
Early in the year, if the table containing the data has no entries for certain values, such as FPA, then the displayed query lacks that row: An example would be where we have not yet entered FPO as a field value for 2003 records, it would look like:
FCD
FPA
MPR
etc.
Is there a way to force display of the FPO row even though there are no FPO values in the filtered query?
The SQL statement I created reads:
TRANSFORM Count(qryIntakeForm.IntakeDate) AS CountOfIntakeDate
SELECT qryIntakeForm.SupervisionType, Count(qryIntakeForm.IntakeDate) AS [Total Of IntakeDate]
FROM qryIntakeForm
WHERE (((qryIntakeForm.IntakeDate) Between #1/1/2003# And #12/31/2003#))
GROUP BY qryIntakeForm.SupervisionType
PIVOT Format([IntakeDate],"mmm") In ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
Thanks,
Flop