I have a column labelled "date_st". I am trying to assign a period to the record based on the "date_st". I wrote an iff statement code, but I am getting syntax errors. Can anyone point out where the errors might be? Thanks.
Code:
Iif([date_st]=>12/26/2009 and [date_st]<=1/23/2010, “P1 2010”, iif([date_st]=>1/24/2010 and [date_st]<=2/20/2010, “P2 2010”, iif([date_st]=>2/21/2010 and [date_st]<=3/20/2010, “P3 2010”, iif([date_st]=>3/21/2010 and [date_st]<=4/17/2010, “P4 2010”, iif([date_st]=>4/18/2010 and [date_st]<=5/15/2010, “P5 2010”, iif([date_st]=>5/16/2010 and [date_st]<=6/12/2010, “P6 2010”, iif([date_st]=>6/13/2010 and [date_st]<=7/10/2010, “P7 2010”, iif([date_st]=>7/11/2010 and [date_st]<=8/7/2010, “P8 2010”, iif([date_st]=>8/8/2010 and [date_st]<=9/4/2010, “P9 2010”, iif([date_st]=>9/5/2010 and [date_st]<=10/2/2010, “P10 2010”, null)
Comment