G
Galen
I have a date/time called REVDATTIM stored on a remote
table in the following format 7/15/2004 8:05:09 AM.
I have created a pass-through query in access that
retrives several fields plus this date/time field.
I need to restrict the records the pass-though query
returns based upon this date/time field.
I have tried every syntax combination I can think of with
no result. Here is what I have tried:
SELECT FIELD1, FIELD2, REVDATTIM
WHERE <my other criteria here works fine until I add one
of the date criteria below> AND
REVDATTIME > #8/1/04#
REVDATTIME > '#8/1/04#'
REVDATTIME > '8/1/04'
REVDATTIME > '8/1/2004 12:00:00 AM'
REVDATTIME > '#8/1/2004 12:00:00 AM#'
REVDATTIME > #8/1/2004 12:00:00 AM#
REVDATTIME > [#8/1/2004 12:00:00 AM#]
;
I always get an error either "The string representation of
datetime is incorrect or "the numeric literal "04#" is not
valid"
I am stumped... any ideas?
table in the following format 7/15/2004 8:05:09 AM.
I have created a pass-through query in access that
retrives several fields plus this date/time field.
I need to restrict the records the pass-though query
returns based upon this date/time field.
I have tried every syntax combination I can think of with
no result. Here is what I have tried:
SELECT FIELD1, FIELD2, REVDATTIM
WHERE <my other criteria here works fine until I add one
of the date criteria below> AND
REVDATTIME > #8/1/04#
REVDATTIME > '#8/1/04#'
REVDATTIME > '8/1/04'
REVDATTIME > '8/1/2004 12:00:00 AM'
REVDATTIME > '#8/1/2004 12:00:00 AM#'
REVDATTIME > #8/1/2004 12:00:00 AM#
REVDATTIME > [#8/1/2004 12:00:00 AM#]
;
I always get an error either "The string representation of
datetime is incorrect or "the numeric literal "04#" is not
valid"
I am stumped... any ideas?