#Error using Iif(x,0,Trim(Right([NettingGrp],20))
- From: "ragtopcaddy via AccessMonster.com" <u9289@uwe>
- Date: Thu, 27 Jul 2006 17:37:40 GMT
I get a #error returned if the following Iif statement is false:
Netting_Group: IIf(Trim([NettingGrp])=0,0,Trim(Right([NettingGrp],20)))
Meanwhile, the following statement returns the string expected:
RtNtgGrp: Trim(Right([NettingGrp],20))
Why should the Iif statement return #Error when the same Trim(Right(
functions return a valid result in the same query?
--
Bill Reed
"If you can't laugh at yourself, laugh at somebody else"
Message posted via http://www.accessmonster.com
.
- Follow-Ups:
- Re: #Error using Iif(x,0,Trim(Right([NettingGrp],20))
- From: Marshall Barton
- Re: #Error using Iif(x,0,Trim(Right([NettingGrp],20))
- From: John Spencer
- Re: #Error using Iif(x,0,Trim(Right([NettingGrp],20))
- Prev by Date: Re: 'Enter Parameter Value'
- Next by Date: Re: 'Enter Parameter Value'
- Previous by thread: Re: 'Enter Parameter Value'
- Next by thread: Re: #Error using Iif(x,0,Trim(Right([NettingGrp],20))
- Index(es):