Wayne-I-M said:
Hi Albert
I just tried this (using the detail given by Bob Barnes) and it works fine
?
I set the defualt to Now() and this finds the data set by a date criteria
SELECT Table1.Date1
FROM Table1
WHERE (((Table1.Date1)=#3/23/2008#));
If the default value for date1 is now(), then the above query will not work
correctly. Open up the table, and view the date1 column.....you should see a
time portion, and if you don't, then something else is at work here.
I suppose it needs pointing out that Bob's example was actually asking about
sorting, and his expression used now(), we actually don't know what he is
uses for the default field. And, if you do using month(), day(), year(), and
datevalue()...you will get whole numbers.
It just that in his post, using now was a VERY wrong choice. Test your above
conclusion, something else is at play here....if you actually included the
time portion in your date field, your above where expression will not
work...