Hello All, I am creating a query with several fields that are calculated off of other fields in a table. I currently have 4 set up in the same query, two are working and two are not. These IIf statments are basically looking at other fields to see if conditions apply then inputting a response in the calculated field. I cannot find what I am doing wrong. I have tried to simplify them and still nothing. If you have some sympathy for someone who barely knows enough to get by, please review the Not Working items below and see what you think :
Working:
1. Job: IIf([Summary - Master].[Job Date Opened]>#1/1/2000#,"1","")
2. Closed: IIf([Summary - Master].[Job Process Control]="Closed","1",IIf([Summary - Master].[Job Process Control]="A/P, I/O and Billing","1",IIf([Summary - Master].[Job Process Control]="No Processing","1",IIf([Summary - Master].[Job Process Control]="I/O and Billing","1",IIf([Summary - Master].[Job Process Control]="Billing Only","1","")))))
Not Working:
3. Segment: IIf([Summary - Master].[Campaign Name]='2013*',"2013 Playbook",IIf([Summary - Master].[Campaign Name]="2014*","2014 Playbook",IIf([Summary - Master].[Campaign Name]="2015*","2015 Playbook",IIf([Summary - Master].[Campaign Name]="2016*","2016 Playbook",IIf([Summary - Master].[Campaign Name]="2017*","2017 Playbook",IIf([Summary - Master].[Campaign Name]="2018*","2018 Playbook",IIf([Summary - Master].[Campaign Name]="2019*","2019 Playbook","")))))))
4. INC: IIf([Job Component]="*_INC","1",IIf([Component Description]="*_INC","1",""))
Working:
1. Job: IIf([Summary - Master].[Job Date Opened]>#1/1/2000#,"1","")
2. Closed: IIf([Summary - Master].[Job Process Control]="Closed","1",IIf([Summary - Master].[Job Process Control]="A/P, I/O and Billing","1",IIf([Summary - Master].[Job Process Control]="No Processing","1",IIf([Summary - Master].[Job Process Control]="I/O and Billing","1",IIf([Summary - Master].[Job Process Control]="Billing Only","1","")))))
Not Working:
3. Segment: IIf([Summary - Master].[Campaign Name]='2013*',"2013 Playbook",IIf([Summary - Master].[Campaign Name]="2014*","2014 Playbook",IIf([Summary - Master].[Campaign Name]="2015*","2015 Playbook",IIf([Summary - Master].[Campaign Name]="2016*","2016 Playbook",IIf([Summary - Master].[Campaign Name]="2017*","2017 Playbook",IIf([Summary - Master].[Campaign Name]="2018*","2018 Playbook",IIf([Summary - Master].[Campaign Name]="2019*","2019 Playbook","")))))))
4. INC: IIf([Job Component]="*_INC","1",IIf([Component Description]="*_INC","1",""))