C
croy
For this SQL:
TRANSFORM Sum(Final.SumOfMonthlySppeffort) AS SumOfEffort
SELECT Final.Months
FROM Final
GROUP BY Final.Months, Final.Years, Final.Months
ORDER BY Final.Years, Final.Months
PIVOT Format([LocSort],"0.0")
WITH OWNERACCESS OPTION;
I get just what I want, with the exception of the order of
the columns. The column headings are (should be) numbers
like:
1; 1.1; 2; 7; 10; 10.1; 17; 19 [up to 20]
But in the query results, any with a decimal point show
like:
1_1; 10_1 [etc.]
And they are not in numerical order, but rather like an
alpha sort:
10_1; 17; 2; 20;
If I don't use the Format function on the column header
"LocSort", I get numbers like:
9.9999999973; 10_100003; [etc.]
I'd really like to keep this in a query output, as opposed
to going to a form or report (various reasons).
Is there a way to get these columns sorted, with the numbers
formatted like the actual data, and with decimal points
instead of underscores?
Thanks
croy
TRANSFORM Sum(Final.SumOfMonthlySppeffort) AS SumOfEffort
SELECT Final.Months
FROM Final
GROUP BY Final.Months, Final.Years, Final.Months
ORDER BY Final.Years, Final.Months
PIVOT Format([LocSort],"0.0")
WITH OWNERACCESS OPTION;
I get just what I want, with the exception of the order of
the columns. The column headings are (should be) numbers
like:
1; 1.1; 2; 7; 10; 10.1; 17; 19 [up to 20]
But in the query results, any with a decimal point show
like:
1_1; 10_1 [etc.]
And they are not in numerical order, but rather like an
alpha sort:
10_1; 17; 2; 20;
If I don't use the Format function on the column header
"LocSort", I get numbers like:
9.9999999973; 10_100003; [etc.]
I'd really like to keep this in a query output, as opposed
to going to a form or report (various reasons).
Is there a way to get these columns sorted, with the numbers
formatted like the actual data, and with decimal points
instead of underscores?
Thanks
croy