D
Deville
Hello All,
I would like to know if it is at all possible 2 use a
subquery as the basis 4 the column heading portion of a
crosstab query. The reason is, the filters that apply r
causing only certain State fields 2 show. I would like to
have the State show w/o having 2 hard code them N2 the
Column Headings field N the Query properties.
Here is a sample of the SQl that Im using.
TRANSFORM First(Value) AS [Value]
SELECT Section_Sort, Section, Value AS [Values]
FROM Table1
WHERE (((Section_Sort)=4) AND ((Date)=GetEdate()) AND
((Segment) In ('BLG','COML')))
GROUP BY Section_Sort, Section, Value
PIVOT (SELECT State FROM tblBASE GROUP BY State;
I would like to know if it is at all possible 2 use a
subquery as the basis 4 the column heading portion of a
crosstab query. The reason is, the filters that apply r
causing only certain State fields 2 show. I would like to
have the State show w/o having 2 hard code them N2 the
Column Headings field N the Query properties.
Here is a sample of the SQl that Im using.
TRANSFORM First(Value) AS [Value]
SELECT Section_Sort, Section, Value AS [Values]
FROM Table1
WHERE (((Section_Sort)=4) AND ((Date)=GetEdate()) AND
((Segment) In ('BLG','COML')))
GROUP BY Section_Sort, Section, Value
PIVOT (SELECT State FROM tblBASE GROUP BY State;