A
ASSK
Hi,
Below is my "iif" expression in access form. Basically I have a field where
I want the result to automatically populate depending what you choose from
the other two fields:
=IIf([likelihood]="rare" And [Loss Given Occurrence]="Insignificant","2 &
3",iif([likelihood]="rare" and [Loss Given Occurrence]= "minor","2 & 3",
iif([likelihood]="rare" and [Loss Given Occurrence]= "moderate","4 & 5",
iif([likelihood]="rare" and [Loss Given Occurrence]= "major","4 & 5",
iif([likelihood]="rare" and [Loss Given Occurrence]= "Catastrophic","6 & 7",
iif([likelihood]="unlikely" and [Loss Given Occurrence]= "insignificant","2 &
3", iif([likelihood]="unlikely" and [Loss Given Occurrence]= "minor","4 & 5",
iif([likelihood]="unlikely" and [Loss Given Occurrence]= "moderate","4 & 5",
iif([likelihood]="unlikely" and [Loss Given Occurrence]= "major","6 & 7",
iif([likelihood]="unlikely" and [Loss Given Occurrence]= "catastrophic","6 &
7", iif([likelihood]="Possible" and [Loss Given Occurrence]=
"insignificant","4 & 5", iif([likelihood]="Possible" and [Loss Given
Occurrence]= "minor","4 & 5", iif([likelihood]="Possible" and [Loss Given
Occurrence]= "moderate","6 & 7", iif([likelihood]="Possible" and [Loss Given
Occurrence]= "major","6 & 7", iif([likelihood]="Possible" and [Loss Given
Occurrence]= "catastrophic","8 & 10","" )))))))))))))))
Can someone please help me how I can do this in a Form? I have a text box to
bring the results back but when I copy this "iif" string into the form, it
come back as your expression is too complex.
PLEASE help. QUITE DESPERATE..I am a new user too.
Below is my "iif" expression in access form. Basically I have a field where
I want the result to automatically populate depending what you choose from
the other two fields:
=IIf([likelihood]="rare" And [Loss Given Occurrence]="Insignificant","2 &
3",iif([likelihood]="rare" and [Loss Given Occurrence]= "minor","2 & 3",
iif([likelihood]="rare" and [Loss Given Occurrence]= "moderate","4 & 5",
iif([likelihood]="rare" and [Loss Given Occurrence]= "major","4 & 5",
iif([likelihood]="rare" and [Loss Given Occurrence]= "Catastrophic","6 & 7",
iif([likelihood]="unlikely" and [Loss Given Occurrence]= "insignificant","2 &
3", iif([likelihood]="unlikely" and [Loss Given Occurrence]= "minor","4 & 5",
iif([likelihood]="unlikely" and [Loss Given Occurrence]= "moderate","4 & 5",
iif([likelihood]="unlikely" and [Loss Given Occurrence]= "major","6 & 7",
iif([likelihood]="unlikely" and [Loss Given Occurrence]= "catastrophic","6 &
7", iif([likelihood]="Possible" and [Loss Given Occurrence]=
"insignificant","4 & 5", iif([likelihood]="Possible" and [Loss Given
Occurrence]= "minor","4 & 5", iif([likelihood]="Possible" and [Loss Given
Occurrence]= "moderate","6 & 7", iif([likelihood]="Possible" and [Loss Given
Occurrence]= "major","6 & 7", iif([likelihood]="Possible" and [Loss Given
Occurrence]= "catastrophic","8 & 10","" )))))))))))))))
Can someone please help me how I can do this in a Form? I have a text box to
bring the results back but when I copy this "iif" string into the form, it
come back as your expression is too complex.
PLEASE help. QUITE DESPERATE..I am a new user too.