Sql Date Question
- From: "John" <johnpk1946@xxxxxxxxx>
- Date: Mon, 20 Nov 2006 09:42:20 -0800
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.
Thanks
John
.
- Follow-Ups:
- Re: Sql Date Question
- From: Brian Bushay TeamB
- Re: Sql Date Question
- From: Kevin Frevert
- Re: Sql Date Question
- From: Scott Toney
- Re: Sql Date Question
- Prev by Date: Re: Handling Open Exception
- Next by Date: Re: Handling Open Exception
- Previous by thread: Handling Open Exception
- Next by thread: Re: Sql Date Question
- Index(es):