Hi all,
I run this query that works fine but I add one more IIF
means more than 14 IIF gave an error : WHY
SELECT IIf([demicote2]="01.0",1,IIf([demicote2]="01.5",1.5,IIf([demicote2]="02.0",2,IIf([demicote2]="02.5",2.5,IIf([demicote2]="03.0",3,IIf([demicote2]="03.5",3.5,IIf([demicote2]="04.0",4,IIf([demicote2]="04.5",4.5,IIf([demicote2]="05.0",5,IIf([demicote2]="05.5",5.5,IIf([demicote2]="06.0",6,IIf([demicote2]="06.5",6.5,IIf([demicote2]="07.0",7,IIf([demicote2]="07.5",7.5)))))))))))))) AS demicote3
FROM coteMoyenne
What is another alternative to resolve if we need more
than 14 IIF inside the query, please help.
TIA
I run this query that works fine but I add one more IIF
means more than 14 IIF gave an error : WHY
SELECT IIf([demicote2]="01.0",1,IIf([demicote2]="01.5",1.5,IIf([demicote2]="02.0",2,IIf([demicote2]="02.5",2.5,IIf([demicote2]="03.0",3,IIf([demicote2]="03.5",3.5,IIf([demicote2]="04.0",4,IIf([demicote2]="04.5",4.5,IIf([demicote2]="05.0",5,IIf([demicote2]="05.5",5.5,IIf([demicote2]="06.0",6,IIf([demicote2]="06.5",6.5,IIf([demicote2]="07.0",7,IIf([demicote2]="07.5",7.5)))))))))))))) AS demicote3
FROM coteMoyenne
What is another alternative to resolve if we need more
than 14 IIF inside the query, please help.
TIA