mcolson wrote:
Quote:
I was finally able to get it to work when I changed the format so it
goes yyyy/mm/dd. Any idea on why this would be?
SELECT Format([dbo_GP_PumpDownDaily]![DateTime],"yyyy/mm/dd") AS
[DateTime], dbo_GP_PumpDownDaily.Location,
dbo_GP_PumpDownDaily.Pressure
FROM dbo_GP_PumpDownDaily
WHERE (((Format([dbo_GP_PumpDownDaily]![DateTime],"yyyy/mm/
dd"))>Format(#12/25/2010#,"yyyy/mm/dd")));
You probably have a Now() type field. A date field has a time of
|
0:00am. If your field has both date & time, they'll all most likely
have a time greater than 0:00am.
So
FldDate > #12/25/2010# And fldDate < #12/26/2010# would
get all records on 12/25. If you had
FldDate = #12/25/2010#
and the field was date & time, you'd end up with no records.