G
Guest
Hi
I have a CrossTab Qry with 2 Rows and Columns with a dates:
"Oct-06","Nov-06","Dec-06","Jan-07","Feb-07"
I have put the above dates in the Properties/ColumnHeadings dialogue, but
get no headings...?
SQL: TRANSFORM Sum(Species_caught.Num_kept) AS SumOfNum_kept
SELECT Areas.Area_details, Species_names.species_common_name
FROM Areas INNER JOIN ([Trip Record] INNER JOIN (Species_names INNER JOIN
Species_caught ON Species_names.Species_code = Species_caught.Species_code)
ON [Trip Record].Trip_ID = Species_caught.Trip_ID) ON Areas.Area_Code = [Trip
Record].Area_code
WHERE (((Format([Date],"mmm-yy"))="Oct-06" Or
(Format([Date],"mmm-yy"))="Nov-06" Or (Format([Date],"mmm-yy"))="Dec-06" Or
(Format([Date],"mmm-yy"))="Jan-07" Or (Format([Date],"mmm-yy"))="Feb-07"))
GROUP BY Areas.Area_details, Species_names.species_common_name
PIVOT Format([Date],"mmm-yy") In
("Oct-06","Nov-06","Dec-06","Jan-07","Feb-07");
Cheers... Sean
I have a CrossTab Qry with 2 Rows and Columns with a dates:
"Oct-06","Nov-06","Dec-06","Jan-07","Feb-07"
I have put the above dates in the Properties/ColumnHeadings dialogue, but
get no headings...?
SQL: TRANSFORM Sum(Species_caught.Num_kept) AS SumOfNum_kept
SELECT Areas.Area_details, Species_names.species_common_name
FROM Areas INNER JOIN ([Trip Record] INNER JOIN (Species_names INNER JOIN
Species_caught ON Species_names.Species_code = Species_caught.Species_code)
ON [Trip Record].Trip_ID = Species_caught.Trip_ID) ON Areas.Area_Code = [Trip
Record].Area_code
WHERE (((Format([Date],"mmm-yy"))="Oct-06" Or
(Format([Date],"mmm-yy"))="Nov-06" Or (Format([Date],"mmm-yy"))="Dec-06" Or
(Format([Date],"mmm-yy"))="Jan-07" Or (Format([Date],"mmm-yy"))="Feb-07"))
GROUP BY Areas.Area_details, Species_names.species_common_name
PIVOT Format([Date],"mmm-yy") In
("Oct-06","Nov-06","Dec-06","Jan-07","Feb-07");
Cheers... Sean