M
Martin Dashper
I am comparing the value of a time stored in a dateTime field in a
table with a hard coded value.
The table value is, nominally, 09:00:00. However when making the
query,
Set myRec = db.OpenRecordset("SELECT * FROM myTable WHERE myTime =
#09:00:00#")
the matching record is not found.
However,
Set myRec = db.OpenRecordset("SELECT * FROM myTable WHERE myTime >
#08:59:59# AND myTime < #09:00:00#")
will return the appropriate record.
Is there a workaround for this apparent anomaly.?
Martin Dashper
table with a hard coded value.
The table value is, nominally, 09:00:00. However when making the
query,
Set myRec = db.OpenRecordset("SELECT * FROM myTable WHERE myTime =
#09:00:00#")
the matching record is not found.
However,
Set myRec = db.OpenRecordset("SELECT * FROM myTable WHERE myTime >
#08:59:59# AND myTime < #09:00:00#")
will return the appropriate record.
Is there a workaround for this apparent anomaly.?
Martin Dashper