Syntax Issues

F

fgwiii

I attempting to do the following

Subeve: IIf([RDCIS]![DCI_NAME]="Page_03a","0" & [RDCIS]![SUBEVENT],"")
else IIf ([RDCIS]![DCI_NAME]="Page_04","0" & [RDCIS]![SUBEVENT],"")
else IIf ([RDCIS]![DCI_NAME]="Page_07","0" & [RDCIS]![SUBEVENT],"")

But I do not know the proper syntax.

Please help,

Fred
 
R

Rick Brandt

fgwiii said:
I attempting to do the following

Subeve: IIf([RDCIS]![DCI_NAME]="Page_03a","0" & [RDCIS]![SUBEVENT],"")
else IIf ([RDCIS]![DCI_NAME]="Page_04","0" & [RDCIS]![SUBEVENT],"")
else IIf ([RDCIS]![DCI_NAME]="Page_07","0" & [RDCIS]![SUBEVENT],"")

But I do not know the proper syntax.

Please help,

Fred

Subeve: IIf([RDCIS]![DCI_NAME]=In("Page_03a", "Page_04", "Page_07"), "0" &
[RDCIS]![SUBEVENT],"")
 
O

Ofer Cohen

Try nested iif

IIf(criteria, then , iif(critera, then, iif(criteria, then,else)))

Subve: IIf([RDCIS]![DCI_NAME]="Page_03a","0" & [RDCIS]![SUBEVENT],IIf
([RDCIS]![DCI_NAME]="Page_04","0" & [RDCIS]![SUBEVENT],IIf
([RDCIS]![DCI_NAME]="Page_07","0" & [RDCIS]![SUBEVENT],"")))
 
F

fgwiii

Thanks - That did the trick!

Ofer Cohen said:
Try nested iif

IIf(criteria, then , iif(critera, then, iif(criteria, then,else)))

Subve: IIf([RDCIS]![DCI_NAME]="Page_03a","0" & [RDCIS]![SUBEVENT],IIf
([RDCIS]![DCI_NAME]="Page_04","0" & [RDCIS]![SUBEVENT],IIf
([RDCIS]![DCI_NAME]="Page_07","0" & [RDCIS]![SUBEVENT],"")))


--
Good Luck
BS"D


fgwiii said:
I attempting to do the following

Subeve: IIf([RDCIS]![DCI_NAME]="Page_03a","0" & [RDCIS]![SUBEVENT],"")
else IIf ([RDCIS]![DCI_NAME]="Page_04","0" & [RDCIS]![SUBEVENT],"")
else IIf ([RDCIS]![DCI_NAME]="Page_07","0" & [RDCIS]![SUBEVENT],"")

But I do not know the proper syntax.

Please help,

Fred
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top