C
croy
Two similar, crosstab queries that act a little differently:
The first one, hand-built, repeats "Pcent" for all column
header fields, whether or not I enter anything in the Column
Header property. SQL follows.
TRANSFORM Sum([APH]/[TtlAPH])*100 AS Pcent
SELECT qryEDMTabWkDay03.DayTypes
FROM qryEDMTabWkDay02 INNER JOIN qryEDMTabWkDay03 ON
qryEDMTabWkDay02.DayTypes = qryEDMTabWkDay03.DayTypes
GROUP BY qryEDMTabWkDay03.DayTypes
PIVOT qryEDMTabWkDay02.ChartHour;
The second, built with the "wizard", shows proper (expected)
times, like 05:00:00 for column headers, whether or not I
enter anything in the Column Header property:
TRANSFORM Sum([APH]/[TtlAPH])*100 AS Pcent
SELECT [000_Test_000].qryEDMTabWkDay02.DayTypes
FROM 000_Test_000
GROUP BY [000_Test_000].qryEDMTabWkDay02.DayTypes
PIVOT [000_Test_000].ChartHour;
By the way, the "ChartHour" field is from a table with
specific hours entered in the ChartHour field, like 05:00,
06:00, etc., and the data type is Date/Time.
Can anyone here identify why these two queries would display
the column headers differently?
The first one, hand-built, repeats "Pcent" for all column
header fields, whether or not I enter anything in the Column
Header property. SQL follows.
TRANSFORM Sum([APH]/[TtlAPH])*100 AS Pcent
SELECT qryEDMTabWkDay03.DayTypes
FROM qryEDMTabWkDay02 INNER JOIN qryEDMTabWkDay03 ON
qryEDMTabWkDay02.DayTypes = qryEDMTabWkDay03.DayTypes
GROUP BY qryEDMTabWkDay03.DayTypes
PIVOT qryEDMTabWkDay02.ChartHour;
The second, built with the "wizard", shows proper (expected)
times, like 05:00:00 for column headers, whether or not I
enter anything in the Column Header property:
TRANSFORM Sum([APH]/[TtlAPH])*100 AS Pcent
SELECT [000_Test_000].qryEDMTabWkDay02.DayTypes
FROM 000_Test_000
GROUP BY [000_Test_000].qryEDMTabWkDay02.DayTypes
PIVOT [000_Test_000].ChartHour;
By the way, the "ChartHour" field is from a table with
specific hours entered in the ChartHour field, like 05:00,
06:00, etc., and the data type is Date/Time.
Can anyone here identify why these two queries would display
the column headers differently?