Re: Sql Date Question
- From: Brian Bushay TeamB <BBushay@xxxxxxxxx>
- Date: Mon, 20 Nov 2006 22:10:01 -0600
Hi
Add('Select * from Table1');
Add('Where APPTDATE >= ' +
QuotedStr(FormatDateTime('mm"/"dd"/"yyyy', FromDate)));
Add(' AND APPTDATE <= ' +
QuotedStr(FormatDateTime('mm"/"dd"/"yyyy', ToDate)));
Add('Order by LeadNo');
The above sql stmt works find if the from & to dates are within the same
year but not if the years is different. The table will have many yeats on
it.
Something is amiss but I can't figure it out.
Why shouldn't it have more than one year in it?
What year are you looking for?
--
Brian Bushay (TeamB)
Bbushay@xxxxxxxxx
.
- References:
- Sql Date Question
- From: John
- Sql Date Question
- Prev by Date: Re: Handling Open Exception
- Next by Date: Re: Storing passwords in a database
- Previous by thread: Re: Sql Date Question
- Next by thread: TADODataSet Filter
- Index(es):