P
PA
Dear All
I try to use IIF and OR functions together, it does work well at MS Excel as
follow
=IF(OR(C1="CC",C1="ZD",C1="CE"),C1&"_"&D1,C1)
I try to implement it at MS Access 2000 as below, but it does not work
...always have error message said that “ Syntax error(comma) in query
expressionâ€
Date Col"B" Col"C" Col"D"
1/01/2007 CC Coded ='IIF((OR(="CC",="ZD",="CE"),{B}&"_"&[C],)
2/01/2007 CD Coded ='IIF((OR(="CC",="ZD",="CE"),{B}&"_"&[C],)
3/01/2007 CE Coded ='IIF((OR(="CC",="ZD",="CE"),{B}&"_"&[C],)
9/01/2007 CC Notcoded ='IIF((OR(="CC",="ZD",="CE"),{B}&"_"&[C],)
11/01/2007 CD Notcoded ='IIF((OR(="CC",="ZD",="CE"),{B}&"_"&[C],)
23/01/2007 CE Notcoded ='IIF((OR(="CC",="ZD",="CE"),{B}&"_"&[C],)
4/01/2007 ZD Notcoded ='IIF((OR(="CC",="ZD",="CE"),{B}&"_"&[C],)
5/01/2007 ZW Coded ='IIF((OR(="CC",="ZD",="CE"),{B}&"_"&[C],)
Would any one can help me to fix this expression?
Thanks a lot for your help,
Best Regards
PA
I try to use IIF and OR functions together, it does work well at MS Excel as
follow
=IF(OR(C1="CC",C1="ZD",C1="CE"),C1&"_"&D1,C1)
I try to implement it at MS Access 2000 as below, but it does not work
...always have error message said that “ Syntax error(comma) in query
expressionâ€
Date Col"B" Col"C" Col"D"
1/01/2007 CC Coded ='IIF((OR(="CC",="ZD",="CE"),{B}&"_"&[C],)
2/01/2007 CD Coded ='IIF((OR(="CC",="ZD",="CE"),{B}&"_"&[C],)
3/01/2007 CE Coded ='IIF((OR(="CC",="ZD",="CE"),{B}&"_"&[C],)
9/01/2007 CC Notcoded ='IIF((OR(="CC",="ZD",="CE"),{B}&"_"&[C],)
11/01/2007 CD Notcoded ='IIF((OR(="CC",="ZD",="CE"),{B}&"_"&[C],)
23/01/2007 CE Notcoded ='IIF((OR(="CC",="ZD",="CE"),{B}&"_"&[C],)
4/01/2007 ZD Notcoded ='IIF((OR(="CC",="ZD",="CE"),{B}&"_"&[C],)
5/01/2007 ZW Coded ='IIF((OR(="CC",="ZD",="CE"),{B}&"_"&[C],)
Would any one can help me to fix this expression?
Thanks a lot for your help,
Best Regards
PA