Hi -
I have a report where the field ([cashieravg]) that I would like to format as $ or % is based on the value of another field ([format]). Both of these fields are on the report.
In testing this, I have tried the following in the Control Source :
=iif([format]="%",format([cashieravg],"0.00")&"%",1)
When I view the report, the value for [cashieravg] with % in the [format] field is #Error. The values in the [cashieravg] with something other than % in [format] shows correctly as 1.
I also tried just
=Iif([format]="%",[cashieravg],1)
and still get #Error.
Any ideas why it would show as #Error? Please let me know if something is unclear. Thank you so much in advance!
I have a report where the field ([cashieravg]) that I would like to format as $ or % is based on the value of another field ([format]). Both of these fields are on the report.
In testing this, I have tried the following in the Control Source :
=iif([format]="%",format([cashieravg],"0.00")&"%",1)
When I view the report, the value for [cashieravg] with % in the [format] field is #Error. The values in the [cashieravg] with something other than % in [format] shows correctly as 1.
I also tried just
=Iif([format]="%",[cashieravg],1)
and still get #Error.
Any ideas why it would show as #Error? Please let me know if something is unclear. Thank you so much in advance!