Ok, so i have a field - dater - that stores date/time values in the standard way - 38362.931065 - for example.
I need to be able to query this field by date only. I have read a bunch of 'solutions' and tried them. they all produce blank results when querying for dates that do exist in the data.
The values that I have tried for the expression and criteria include:
Expr1: Format([dater],"mm-dd-yyyy")
Criteria: 1-11-2005 - blank results
Criteria: #1/11/2005# - blank results
dater
Criteria: #1/11/2005# - blank results
Criteria: format("dater", "mm-dd-yyyy") = "1-11-2005" = blank results
Criteria: format("dater", "mmddyyyy") = #1-11-2005# = blank results
Criteria: format("dater", "mmddyyyy") = #01112005# = blank results
Criteria: format("dater", "mmddyyyy") = "01112005" = blank results
Expr1: formate([dater],"mmddyyyy")
criteria: 01112005 - returns the results
The last one is the only one that runs successfully - but seems very cludge to me. Is there a way to do it without using a text string (that works!)
thanks
I need to be able to query this field by date only. I have read a bunch of 'solutions' and tried them. they all produce blank results when querying for dates that do exist in the data.
The values that I have tried for the expression and criteria include:
Expr1: Format([dater],"mm-dd-yyyy")
Criteria: 1-11-2005 - blank results
Criteria: #1/11/2005# - blank results
dater
Criteria: #1/11/2005# - blank results
Criteria: format("dater", "mm-dd-yyyy") = "1-11-2005" = blank results
Criteria: format("dater", "mmddyyyy") = #1-11-2005# = blank results
Criteria: format("dater", "mmddyyyy") = #01112005# = blank results
Criteria: format("dater", "mmddyyyy") = "01112005" = blank results
Expr1: formate([dater],"mmddyyyy")
criteria: 01112005 - returns the results
The last one is the only one that runs successfully - but seems very cludge to me. Is there a way to do it without using a text string (that works!)
thanks