I'm using sql with :startDate and :endDate params to get records from a tTable.
However, I'm getting funny results.
The sql statement is:
select * from "C:\xyz\Accounts.DB" as Accounts
where Accounts."Type" = 'Credit' And Accounts."Date" >= :StartDate and Accounts."Date" <= EndDate
However, the result set returns the same row twice when the date is just 1 day and only 1 record matches the search criteria.
I then tried to set :endDate to ...Accounts."Date" < :endDate
and the result set was enpty for the same date as above.
Can anyone tell me what I'm doing wrong?
Thanks in advance,
yomyom.
However, I'm getting funny results.
The sql statement is:
select * from "C:\xyz\Accounts.DB" as Accounts
where Accounts."Type" = 'Credit' And Accounts."Date" >= :StartDate and Accounts."Date" <= EndDate
However, the result set returns the same row twice when the date is just 1 day and only 1 record matches the search criteria.
I then tried to set :endDate to ...Accounts."Date" < :endDate
and the result set was enpty for the same date as above.
Can anyone tell me what I'm doing wrong?
Thanks in advance,
yomyom.