SUM on alias in a REPORT

F

Frank

Is there a way to do a SUM calculation in a report footer [or group footer]
of a column field alias of a particular query?
On report: =SUM([MarksAlias]) ???
The alias in the query contain the following statement in the column field:
Exampl: MarksAlias: IIF([Memory]=â€Aâ€,â€0â€,IIF([Memory]=â€Bâ€,â€0â€, [Marks])
Thank you
 
M

Marshall Barton

Frank said:
Is there a way to do a SUM calculation in a report footer [or group footer]
of a column field alias of a particular query?
On report: =SUM([MarksAlias]) ???
The alias in the query contain the following statement in the column field:
Exampl: MarksAlias: IIF([Memory]=”A”,”0”,IIF([Memory]=”B”,”0”, [Marks])


If you want to sum something, it must be a number type.
Since you have quotes around the numbers in the IIfs they
return Text.

Just remove the extra quotes:

MarksAlias: IIF([Memory]=”A”,0,IIF([Memory]=”B”,0, [Marks])
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top