G
grantschneider
I have a crosstab query and I want to make sure it only queries data
from a single year. I have a column that is set up mmmYYYY (this
column in the table is a TEXT column). I want to use that column to
query only the data for a specific year. This is what I have tried and
it doesnt seem to work. Also, i would be interested in understanding
how to do this with a standard date column, format: dd/mm/yy.
PARAMETERS [Enter Year] Text ( 255 );
TRANSFORM Sum(MSF.[Share Total]) AS [SumOfShare Total]
SELECT MSF.SVP, Sum(MSF.[Share Total]) AS [Total Of Share Total]
FROM MSF
WHERE (((MSF.MonthC) Like "*[Enter Year]"))
GROUP BY MSF.SVP
PIVOT MSF.Account;
Thanks,
Grant
from a single year. I have a column that is set up mmmYYYY (this
column in the table is a TEXT column). I want to use that column to
query only the data for a specific year. This is what I have tried and
it doesnt seem to work. Also, i would be interested in understanding
how to do this with a standard date column, format: dd/mm/yy.
PARAMETERS [Enter Year] Text ( 255 );
TRANSFORM Sum(MSF.[Share Total]) AS [SumOfShare Total]
SELECT MSF.SVP, Sum(MSF.[Share Total]) AS [Total Of Share Total]
FROM MSF
WHERE (((MSF.MonthC) Like "*[Enter Year]"))
GROUP BY MSF.SVP
PIVOT MSF.Account;
Thanks,
Grant