Thanks, but I am still not getting it.
How does it work without the format force? I'm just an
amateur and there ceratainly won't be any user but my
employees. US, they are.
I thought I understood when the change was "<=" to "<1+";
makes some sense. Don't know coding nearly well enough
though. No combination I tried worked, with or without
the format change.
Have you got more help in ya? Hope!
Thanks.
-----Original Message-----
Hi,
strSQL= " ... AND [EnterDate] < 1+ " & Format
( ..., "\#mm-dd-yyyy\#" )
If you don't force the American format, you may be due
for hard to debug
error if you application is used else where in the world
(including Canada,
UK, Australia, etc).
Hoping it may help,
Vanderghast, Access MVP
message
I see how that works, Fred, but how about when I use it
this way? How do I limit as I do with the
BETWEEN ". . .
23:59:59 PM#"
strSQL = "[EnterDate] >= #" & CDate(Me!txtStartDate)
& "#
AND [EnterDate] <= #" & CDate(Me!txtEndDate) & "#"
I mean, how do I qualify this statement like in the
query?
Thanks.
-----Original Message-----
On Mon, 13 Sep 2004 09:59:43 -0700, RedFred wrote:
Table has fields [EnterDate] and [StartDate]. Each
is
date/time, m/d/yy, indexed dupes ok.
Query 1 retrieves [EnterDate]; query 2 [StartDate].
I limit return by using "BETWEEN #9/1/04# AND
#9/13/04#.
Problem:
Running query 2 returns all records, INcluding
9/13.
Running query 1 returns all records, EXcluding
9/13.
Everything appears the same except for the lack of
9/13
records for query 1. I don't get it.
In hopes that someone can see a flaw...
I thank you for your assitance.
RedFred
If the date field in Query 1 has a time value included
in the field,
then searching for records ending on 9/13/2004 will not
find any past
9/13/2004 00:00:00 AM.
Among your options are to change the search value to 1
day later
(9/14/2004), or include a time value #9/13/2004
23:59:59
PM#, or
change the field data to remove the time value from the
data if it's
not otherwise needed. An Update query will do this
painlessly.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
.
.