Hi Everyone,
I have a query that I would like to format in a tabular way. (I'm using MS Access 2010)
This is a snapshot of the table's data:
This is my access query:
This is what I'm getting:
Idealy I would like to see just one line for Account and ID with a value for each month.
What Am I doing wrong here?
Thanks
I have a query that I would like to format in a tabular way. (I'm using MS Access 2010)
This is a snapshot of the table's data:
This is my access query:
SQL:
SELECT [Income Statement Account Rollup Angelo].[Account Type],
[Income Statement Account Rollup Angelo].ID,
IIf(MonthNo='1',TotalTrans,0) AS Jan,
IIf(MonthNo='2',TotalTrans,0) AS Feb,
IIf(MonthNo='3',TotalTrans,0) AS Mar,
IIf(MonthNo='4',TotalTrans,0) AS Apr,
IIf(MonthNo='5',TotalTrans,0) AS May,
IIf(MonthNo='6',TotalTrans,0) AS Jun,
IIf(MonthNo='7',TotalTrans,0) AS Jul,
IIf(MonthNo='8',TotalTrans,0) AS Aug,
IIf(MonthNo='9',TotalTrans,0) AS Sep,
IIf(MonthNo='10',TotalTrans,0) AS Oct,
IIf(MonthNo='11',TotalTrans,0) AS Nov,
IIf(MonthNo='12',TotalTrans,0) AS Dec
FROM [Income Statement Account Rollup Angelo];
This is what I'm getting:
Idealy I would like to see just one line for Account and ID with a value for each month.
What Am I doing wrong here?
Thanks