I am using Access 2007. The problem is in the following Function:
Public Function GetSeason(SeasonalDate As Date) As String
GetSeason = Nz(DLookup("[PurchaseSeason]", "tblSeason", "[SeasonStartDT]<= #" & SeasonalDate & "# And [SeasonEndDT]>= #" & SeasonalDate & "#"), "")
End Function
For the Season 2013-14, the first date is 1st October 2013 and the last date is 31st September 2014. The Query returns Null for the following 3 dates:
10th January 2014, 11th January 2014 and 12th January 2014.
For all other dates, the Function returns the correct Season including 9th & 13th January 2014. This baffles me. Can anyone suggest what may be the problem. I tried Allen Brown's ELookup Function and it also gives the same result. Can anyone suggest what to do?
Alex