I have a list box with dates queried from table records.
I am trying to run a query against a date picked.
Part of my SQL line is:
MAIN.[DateLogged] >= #" & Format([Forms]![Copy of MainForm]![M5], "yyyy/mm/dd") & "#"
However in debug.print, it produces:
MAIN WHERE 1 = 1 AND MAIN.[DateLogged] >= #1900/01/18#
A bit different from what is in the list 27/02/2013
Can someone tell me how to correct. The listbox name is M5
I am trying to run a query against a date picked.
Part of my SQL line is:
MAIN.[DateLogged] >= #" & Format([Forms]![Copy of MainForm]![M5], "yyyy/mm/dd") & "#"
However in debug.print, it produces:
MAIN WHERE 1 = 1 AND MAIN.[DateLogged] >= #1900/01/18#
A bit different from what is in the list 27/02/2013
Can someone tell me how to correct. The listbox name is M5