Hi
When I search on a date field for #5/7/2005# using the .findfirst method Access is returning a record with "7/5/2005".
some code snipits
dDate = CDate(nCount + 1 - nFirstDay & "-" & Month(Date1) & "-" & Year(Date1)) ' this evaluates to '5/7/2005'
rstCalendar.FindFirst ("date = #" & dDate & "#") ' this finds a record that is '7/5/2005'
however if the date searched for is '20/5/2005' then the correct record is returned. Presumably because 5/20/2005 is not a valid date.
I have date format set to dd/mm/yyyy
Any suggestions would be appreciated.