and year ({slhist.DATE}) = 2010 then totext ("Period 1")
else if month ({slhist.DATE}) in 1 to 9
and year ({slhist.DATE}) = 2011 then totext ("Period 2"))