B
Beetle
I am using a DSum function in a query to to perform a calculation on values
in another query. Thanks to Steve for helping me resolve an earlier problem I
had with this, but now I have a new problem. I want the result to be
displayed as a percentage, however, I have no format options for this field
either in the query or in the form that is bound to the query (I guess this
is because it is a domain function, but I'm not sure). I modified the DSum as
follows;
((DSum("[SumOfFootPrint]/[Area]","qryFillPercent","BinID =" & [BinID])*100)
& "%")
This does work, except that in cases where the calculation results in zero
all I get is the % sign and nothing else. I tried adding nz but no luck. I
would like it to display either 0% or nothing at all if the calculation
results in zero.
Any ideas?
Thanks in advance for any help.
in another query. Thanks to Steve for helping me resolve an earlier problem I
had with this, but now I have a new problem. I want the result to be
displayed as a percentage, however, I have no format options for this field
either in the query or in the form that is bound to the query (I guess this
is because it is a domain function, but I'm not sure). I modified the DSum as
follows;
((DSum("[SumOfFootPrint]/[Area]","qryFillPercent","BinID =" & [BinID])*100)
& "%")
This does work, except that in cases where the calculation results in zero
all I get is the % sign and nothing else. I tried adding nz but no luck. I
would like it to display either 0% or nothing at all if the calculation
results in zero.
Any ideas?
Thanks in advance for any help.