V
vcsphx
All,
I have been getting some sporadic errors when I use the Findfirst for the
date fields. Sometimes it works fine and at other times, it doesn't. For
example, I had these two records in my table "tbltest" for the field
"Start_time": "5/6/2009 10:08:00 PM" and "5/6/2009 11:01:12 PM". This is the
code I have:
tbltest.findfirst("Start_time=#" & Format(rsqry!start_time, "mm/dd/yyyy
hh:mm:ss AM/PM") & "#)
When the code searches for "5/6/2009 10:08:00 PM", it captures the
corresponding record in the table and returns "False" for the
"recordset.nomatch". But when it seraches for "5/6/2009 11:01:12 PM", though
there is a record with the same timestamp under the "Start_time" column,
still I get "True" for the "recordset.nomatch". Does any of you know why it's
happening this way?
Note: The "Start_time" field is defined as "General Datetime" in the table.
Thanks a ton for your help!
I have been getting some sporadic errors when I use the Findfirst for the
date fields. Sometimes it works fine and at other times, it doesn't. For
example, I had these two records in my table "tbltest" for the field
"Start_time": "5/6/2009 10:08:00 PM" and "5/6/2009 11:01:12 PM". This is the
code I have:
tbltest.findfirst("Start_time=#" & Format(rsqry!start_time, "mm/dd/yyyy
hh:mm:ss AM/PM") & "#)
When the code searches for "5/6/2009 10:08:00 PM", it captures the
corresponding record in the table and returns "False" for the
"recordset.nomatch". But when it seraches for "5/6/2009 11:01:12 PM", though
there is a record with the same timestamp under the "Start_time" column,
still I get "True" for the "recordset.nomatch". Does any of you know why it's
happening this way?
Note: The "Start_time" field is defined as "General Datetime" in the table.
Thanks a ton for your help!