If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
#Error using Iif(x,0,Trim(Right([NettingGrp],20))
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 |
Thread Tools | |
Display Modes | |
|
|