Article View: borland.public.cppbuilder.database.multi-tier
Article #1150Re: SQL date
From: Kevin
Date: Wed, 24 May 2000 00:00
Date: Wed, 24 May 2000 00:00
43 lines
1897 bytes
1897 bytes
What is the problem?
is it syntax, or did it not return the records you wanted?
if it didn't return the records you wanted try
selecting based only on the from_date and from_time
and see if that gives you what you expected.
select .....
from ....
where DATA_INI >= FROM_DATE_TIME->Text
if not modify your where clause to get what you wanted.
Then do the same with the to_date and to_time, and then try combining them.
hope this helps
--Kevin
"GIORDANO & C. S.p.A." <giordano@mtrade.com> wrote in message
news:392b899f@dnews...
> I have an Interbase database with a field
> DATA_INI date
>
> I need to select the record using 4 TMaskEdit
> TMaskEdit FROM_DATE
> TMaskEdit FROM_TIME
> TMaskEdit TO_DATE
> TMaskEdit TO_TIME
>
> I want only the record between FROM_DATA and TO_DATA; so that I wrote:
>
> AnsiString FROM_DATE_TIME = FROM_DATE + FROM_TIME;
> AnsiString TO_DATE_TIME = TO_DATE + TO_TIME;
>
> select .....
> from ....
> where DATA_INI >= FROM_DATE_TIME->Text
> and DATA_INI <= TO_DATE_TIME->Text
>
> This is not ok; what can I do ???
>
> Thank you
> Silvana
>
>
Technical Details
Message-ID:
<S3XW4.6673$QB4.487211@news.uswest.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<392b899f@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcd2b,3d3e1091d6ce3444 X-Google-Attributes: gidfcd2b,public From: "Kevin" <tscor2@pop.ptld.uswest.net> Subject: Re: SQL date Date: 2000/05/24 Message-ID: <S3XW4.6673$QB4.487211@news.uswest.net> X-Deja-AN: 626877565 References: <392b899f@dnews> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 X-Trace: news.uswest.net 959200626 216.161.92.170 (Wed, 24 May 2000 15:37:06 CDT) X-MSMail-Priority: Normal NNTP-Posting-Date: Wed, 24 May 2000 15:37:06 CDT Newsgroups: borland.public.cppbuilder.database.multi-tier