No.
You would have to use :
IIF(nCnt = 1,IIF(citem.des1=creport.des,2,3),
)
OR
IIF(nCnt = 1 AND citem.des1=creport.des,2,3)
The first IIF checks for nCnt =1 and if true checks for citem citem.des1=creport.des. If nCnt !=1 then it needs to know what to do (). So If nCnt=1 and citem.des1=creport then the statement returns 2 , If nCnt=1 and citem.des1!=creport the statement returns 3, If nCnt!=1 , the statement returns what ever you place in
The second IIF checks for nCnt = 1 AND citem.des1=creport.des and if true returns 2, if false returns 3.
Hope this helps
>Hi Everyone:
> I was wondering if it is possible to include For statement in a immediate If statement. For example IIF(nCnt = 1,For citem.des1=creport.des,2,3)
>Thanks
Ken Wardwell