If I run an adhoc query, putting in a date, I get all my records. However I am missing records in a query by form. I have a listbox that gets dates via a query to a table (Updated On) field. The listbox is called DULISTMy query is using a where extension: ' Date Updated
If [Forms]![TabbedForm]![DULIST] <> "" Then MySql = MySql & " AND PROGRESS.[Updated On] = #" & Format([Forms]![TabbedForm]![DULIST], "dd/mm/yyyy") & "#"
End If
However If I pick dates:12/10/2006 or 06/04/2011 or 03/10/2011 I get no records from query.If I amend the date 12/10/2006 to 31/10/2006 my record comes out, the same if I modify 06/04/2011 to 26/04/2011 I get my record out. Using Access 2010
If [Forms]![TabbedForm]![DULIST] <> "" Then MySql = MySql & " AND PROGRESS.[Updated On] = #" & Format([Forms]![TabbedForm]![DULIST], "dd/mm/yyyy") & "#"
End If
However If I pick dates:12/10/2006 or 06/04/2011 or 03/10/2011 I get no records from query.If I amend the date 12/10/2006 to 31/10/2006 my record comes out, the same if I modify 06/04/2011 to 26/04/2011 I get my record out. Using Access 2010