L
Laura C.
I have a calculated field in a query that calculates a sum based on whether
or not another field = "Yes" or "No."
It just so happens that currently when I run the query, one of the
calculated results is "0." But in general, our protocol for the report that
runs off the query is to show a null value if the individual in question has
no shares of that type. Prior to the most recent transactions, we never had
an individual simply zero out his shares.
The old expression in the query reads like this:
NonVoting:
Sum(IIf([Transactions]![Voting/NonVot]="No",[Transactions]![Shares]))
I basically need a new calculated field where multiple conditions are at
play, i.e., if [Transactions]![Voting/NonVot]="No" AND the sum is 0, return a
null value; if the [Transactions]![Voting/NonVot] = "No" AND the sum is
greater than 0, add up the shares.
I've tried every permutation I could think of and nothing is working. Can
you help?
or not another field = "Yes" or "No."
It just so happens that currently when I run the query, one of the
calculated results is "0." But in general, our protocol for the report that
runs off the query is to show a null value if the individual in question has
no shares of that type. Prior to the most recent transactions, we never had
an individual simply zero out his shares.
The old expression in the query reads like this:
NonVoting:
Sum(IIf([Transactions]![Voting/NonVot]="No",[Transactions]![Shares]))
I basically need a new calculated field where multiple conditions are at
play, i.e., if [Transactions]![Voting/NonVot]="No" AND the sum is 0, return a
null value; if the [Transactions]![Voting/NonVot] = "No" AND the sum is
greater than 0, add up the shares.
I've tried every permutation I could think of and nothing is working. Can
you help?