I have the following IIF statment in a report drawing its data from a query:
IIf([totalsolidsmin],IIf([totalsolidsmax],[totalsolidsmin] & " - " & [totalsolidsmax],[totalsolidsmin] & " minimum"
,IIf([totalsolidsmax],[totalsolidsmax] & " maximum",""
)
Depending on the presence or absence of totalsoldismin and totalsolidsmax there can be one of four outcomes (assume totalsolidsmin = 62.00 and totalsolidsmax = 63.00):
62.00 - 63.00
62.00 minimum
63.00 maximum
""
Everything works great unless the numbers drop below 0.5, then the outcome is always "".
Any suggestions or alternatives would be appreciated.
Thanks.
IIf([totalsolidsmin],IIf([totalsolidsmax],[totalsolidsmin] & " - " & [totalsolidsmax],[totalsolidsmin] & " minimum"
Depending on the presence or absence of totalsoldismin and totalsolidsmax there can be one of four outcomes (assume totalsolidsmin = 62.00 and totalsolidsmax = 63.00):
62.00 - 63.00
62.00 minimum
63.00 maximum
""
Everything works great unless the numbers drop below 0.5, then the outcome is always "".
Any suggestions or alternatives would be appreciated.
Thanks.