Re: DateTime parameters in ADOQuery
- From: "Del Murray" <Del.Murray@xxxxxxxxxxxxxx>
- Date: Tue, 29 May 2007 19:46:38 -0500
Depending on the actual data in the table, only dates of 1/3 and 1/5 will be
returned. Are you sure that there are records in the table with those dates
?
Since it is Access table, try using the "between" clause "where dates
between (xxx and yyy)
You should check the properties of the two parameters and make sure that
they are datetime and not just date or time.
You could make them string and pass the dates as strings also.
I would make sure that that there really is data for dates of 1/3 and 1/5.
1/6 wont get selected if the data is truly datetime and looks like 1/6/2007
4:30 . that is not <= 1/6/2007 .. it is greater because of the time field.
.
- References:
- DateTime parameters in ADOQuery
- From: Alan T
- Re: DateTime parameters in ADOQuery
- From: Del Murray
- Re: DateTime parameters in ADOQuery
- From: Alan T
- DateTime parameters in ADOQuery
- Prev by Date: Re: DateTime parameters in ADOQuery
- Next by Date: Re: Using TADOConnection with MSSQL, login failure
- Previous by thread: Re: DateTime parameters in ADOQuery
- Next by thread: Re: DateTime parameters in ADOQuery
- Index(es):
Relevant Pages
|