Hello again!
I'm trying to write a IIF function, but I keep getting this error. Have I set it up wrong?
Code:
Negative behavior: IIf([T1_HAngerTotNoInt]="1", "1", IIf([T1_HDisgtTotNoInt]="1", "1", IIf([T1_HCntmpTotNoInt]="1", "1", IIf([T1_HWhineTotNoInt]="1", "1", IIf([T1_HSadnsTotNoInt]="1", "1", IIf([T1_HFerTotNoInt]="1", "1", IIf([T1_HDominTotNoInt]="1", "1", IIf([T1_HBeligTotNoInt]="1", "1", IIf([T1_HDefenTotNoInt]="1", "1", "0")))))))))
The raw data is only 1's and 0's.
The full error:
(its physiology data if you're curious)
Thanks if anyone can help! I'm still a novice
Edit: Ohhh, they're supposed to be separate fields...do I have to split up the IIF statement into 9 parts?
Edit2: Even individual IIF's don't work. Hmm...