Function getDatesStr(period as integer) as string
SELECT ID, OurMaps FROM tblMatterList where Job_Status=Live
and Matter_OpenDate between dateadd("d", ([period]-1)*14,datevalue("01/01/" & year(date()))
and dateadd("d", (([period]-1)*14)+14,datevalue("01/01/" & year(date()))
end function...