I've written this IF statement which isn't working properly i.e. every non-null Due_At date comes out as 'Swot Week' or and every null Due_At date comes out as 'invalid'. Most of the non-null Due_At dates should be in the other categories.
if [Due_At_Date]<'24/06/2019' and [Due_At_Date]>'16/06/2019' then 'Swot Week'
elseif [Due_At_Date]>'09/06/2019' then '13'
elseif [Due_At_Date]>'02/06/2019' then '12'
elseif [Due_At_Date]>'26/05/2019' then '11'
elseif [Due_At_Date]>'19/05/2019' then '10'
elseif [Due_At_Date]>'12/05/2019' then '9'
elseif [Due_At_Date]>'05/05/2019' then '8'
elseif [Due_At_Date]>'28/04/2019' then '7'
elseif [Due_At_Date]>'21/04/2019' then 'MSB Week 2'
elseif [Due_At_Date]>'14/04/2019' then 'MSB Week 1'
elseif [Due_At_Date]>'07/04/2019' then '6' elseif [Due_At_Date]>'31/03/2019' then '5'
elseif [Due_At_Date]>'24/03/2019' then '4' elseif [Due_At_Date]>'17/03/2019' then '3'
elseif [Due_At_Date]>'10/03/2019' then '2' elseif [Due_At_Date]>'03/03/2019' then '1'
else 'invalid' endif
Can anyone see what I'm doing wrong?
Thanks in advance for your help.