R
Ruth Isaacs
Hello All
I have:
TRANSFORM Sum([credit]-[debit]) AS [value]
SELECT Format([date],"mmm yyyy") AS Expr1
FROM [payedoc accounts]
GROUP BY Format([date],"mmm yyyy")
PIVOT [payedoc accounts].category;
.... which works OK, except that the rows are being displayed in alphabetical
order according to the expression
Format([date],"mmm yyyy") AS Expr1 i.e.
Apr 1998 followed by Apr 1999 followed by Apr 2000 etc
whereas I need them to be displayed in date order i.e.
Apr 1998 followed by May 1998 followed by June 1998 etc.
I really cannot see how to do this although I'm sure it must be possible.
BTW: I am aware that I have broken a golden rule in having a field name
'date' - but I have got away with it so far!
Hope someone can help.
Many thanks
Leslie Isaacs
I have:
TRANSFORM Sum([credit]-[debit]) AS [value]
SELECT Format([date],"mmm yyyy") AS Expr1
FROM [payedoc accounts]
GROUP BY Format([date],"mmm yyyy")
PIVOT [payedoc accounts].category;
.... which works OK, except that the rows are being displayed in alphabetical
order according to the expression
Format([date],"mmm yyyy") AS Expr1 i.e.
Apr 1998 followed by Apr 1999 followed by Apr 2000 etc
whereas I need them to be displayed in date order i.e.
Apr 1998 followed by May 1998 followed by June 1998 etc.
I really cannot see how to do this although I'm sure it must be possible.
BTW: I am aware that I have broken a golden rule in having a field name
'date' - but I have got away with it so far!
Hope someone can help.
Many thanks
Leslie Isaacs