Hi,
I want to create a crosstab query that looks like this
Date | Elevation 1 | Elevation 2 | ...
__________________________________________________ ____________________
Date 1 | xx.y | xx.y
Date 2 | xx.y | xx.y
xx.y are measurements taken at different dates at different elevations.
xx.y and elevation happen to be in the same format (meters).
The problem is, that the elevations in the column heading are numbers.
In the heading of the crosstab query in datasheet view they are all not
defined as numbers. They look like "286_983". That is the decimal point
is replaced by an underscore.
I needed them to be in number format, so I can plot the crosstab
Is there a way to change the number format? I tried cdec, but it
wouldn't work.
I don't want to change Elevation with Date (rowheading with
columnheading), because I want to make a chart from it later (and I
didn't find a way to make a chart with the rowheading as datasource for
the y-axis)
The SQL looks like this (WTelev are the xx.y in the sample above)
TRANSFORM Avg(WTelev) AS AvgOfWTelev
SELECT [date of sampling]
FROM qry_WTprof INNER JOIN {...}
GROUP BY [date of sampling]
ORDER BY [date of sampling]
PIVOT ElevationMP;
I'd appreciate any help!
Thanks,
Claus