Hi, I need to compare a datetime field with a date range and then display conditional text. For example if {Table.Delv_Date} is in Date Range 12/14/2008-12/27/2008 then I need to display PP1_2009. This is my formula where the text that needs to display is in quotes but this is not working. From other posts, I think I might need to create a variable, but do not know how to incorporate it into this formula.
if DATE ({up_rpt_PickTicket.DELV_DATE}) in Date(12/14/2008) to Date(12/27/2008)then "PP1_2009" else
if DATE ({up_rpt_PickTicket.DELV_DATE}) in Date(12/28/2008) to Date(1/10/2009)then "PP2_2009" else
if DATE ({up_rpt_PickTicket.DELV_DATE}) in Date(1/11/2009) to Date(1/24/2009)then "PP3_2009" else
Thank you
if DATE ({up_rpt_PickTicket.DELV_DATE}) in Date(12/14/2008) to Date(12/27/2008)then "PP1_2009" else
if DATE ({up_rpt_PickTicket.DELV_DATE}) in Date(12/28/2008) to Date(1/10/2009)then "PP2_2009" else
if DATE ({up_rpt_PickTicket.DELV_DATE}) in Date(1/11/2009) to Date(1/24/2009)then "PP3_2009" else
Thank you