sorry to necroposting
Code:
If Me.DataInizioFilt <> "" Then If FiltStr = "" Then
FiltStr = " CDbl(DateValue([Data inizio])) >= " & CDbl(DateValue(Me!DataInizioFilt)) & ""
Else
FiltStr = FiltStr & " AND cdbl(datevalue([data inizio])) >= " & CDbl(DateValue(Me!DataInizioFilt)) & ""
End If
End If
the first part of the filter is not processed
Code:
CDbl(DateValue([Data inizio]))
and it returns
CDbl(DateValue([Data inizio])) >= 43950
i can't figure out how to elaborate the first part CDbl(DateValue([Data inizio]))

Originally Posted by
Ajax
if you want to eliminate time from the underlying value, run an update query
set myDate=datevalue(myDate)
what you see as a date is just format of a number
?cdbl(now())
43953.3601273148
?cdbl(date())
43953
?cdbl(datevalue(now()))
43953
43953 is the number of days since 31/12/1899 and .3601273148 is the time expressed as number of seconds divided by the number of seconds in a day (86400)