G
Guest
I have a table that is laid out in a crosstab format. Using a union query i
have been able to take the colums and join them but i can't seem to create
the field that in a crosstab query would be the column headings.
So how do I add a new field to the query, call it "Month" and populate the
records with "Oct" or whatever month I need. The code I have so far is below:
Select [Year],[PC],[LC],[DC],[GLAC],[Oct] AS Amount
From [FMBS Import]
UNION ALL Select [Year],[PC],[LC],[DC],[GLAC],[Nov]
From [FMBS Import];
The "Month" needs to follow "GLAC"
Thanks in advance,
Bryan
have been able to take the colums and join them but i can't seem to create
the field that in a crosstab query would be the column headings.
So how do I add a new field to the query, call it "Month" and populate the
records with "Oct" or whatever month I need. The code I have so far is below:
Select [Year],[PC],[LC],[DC],[GLAC],[Oct] AS Amount
From [FMBS Import]
UNION ALL Select [Year],[PC],[LC],[DC],[GLAC],[Nov]
From [FMBS Import];
The "Month" needs to follow "GLAC"
Thanks in advance,
Bryan