Marshall,
Thanks for your response. You area correct. When I edited the field as
follows, it returned the correct values:
Netting_Group: IIf(Trim([NettingGrp])="0","0",Trim(Right([NettingGrp],20)))
Thanks,
Bill
Marshall Barton wrote:
I get a #error returned if the following Iif statement is false:
[quoted text clipped - 6 lines]
Why should the Iif statement return #Error when the same Trim(Right(
functions return a valid result in the same query?
I don't know, but your mix of numeric and text values may be
confusing things.
How can the NettingGrp field equal 0? Shouldn't the
calculation be:
IIf(Trim([NettingGrp])="0","0",Trim(Right([NettingGrp],20)))
Or maybe that's not what you want to do and the IIf
condition is incomplete??
Maybe I could get a better picture of what you're trying to
do here if you posted a small set of sample data and the
desired result.
--
Bill Reed
"If you can't laugh at yourself, laugh at somebody else"
Message posted via
http://www.accessmonster.com