Date #26/10/2015# in query returns nothing

Kobus-Dippenaar

Registered User.
Local time
Today, 07:21
Joined
Oct 10, 2014
Messages
50
Good day to all,

I need some help about using dates, I don't understand why it is not working.

I have a date field defined as Date/Time format short date default value now() in the table.

Now running a query with criteria #26/10/2015# or now() return no records.
Could it be the time embedded in the date? or being part of the date?

I have even tried to compare the dates as per attached png picture.

Your assistance is welcomed.

Kobus
 

Attachments

  • query.jpg
    query.jpg
    102 KB · Views: 204
The use of NOW() will include a Time , you should have used Date()

lookup Datevalue function

Brian
 
On second thoughts just try Int(your field) as dates are a stored as a Double with before the decimal point being the year and after the time.

Brian
 
have you tried the format function

Where CMLDate = #" & Format(Date, "mm\/dd\/yyyy") & "#"

or

Where wsd = #" & Format(Date, "mm\/dd\/yyyy") & "#"
 

Users who are viewing this thread

Back
Top Bottom