The following code is supposed to show date in a search function.
strSearch = "[" & fld.Name & "] = #" & Me.Date & "#"
It sort of works but not correctly. My date format is UK ie. dd/mm/yy. If I enter dd/mm/yy into the 'Search for' box it says there are no records. However if I enter mm/dd/yy it finds records where the date actually is dd/mm/yy. The machine's settings is for dd/mm/yy and the data is entered in this format.
What is wrong with the code. Any ideas.
strSearch = "[" & fld.Name & "] = #" & Me.Date & "#"
It sort of works but not correctly. My date format is UK ie. dd/mm/yy. If I enter dd/mm/yy into the 'Search for' box it says there are no records. However if I enter mm/dd/yy it finds records where the date actually is dd/mm/yy. The machine's settings is for dd/mm/yy and the data is entered in this format.
What is wrong with the code. Any ideas.