🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #2407

Re: Question about ADO and Access

#2407
From: Mike Collins
Date: Mon, 21 Jul 2003 00:08
26 lines
1953 bytes
I ANSWERED THIS QUESTION WHEN YOU POSTED IT IN VCL.COMPONENTS.USING - if
this has not reolved your problems then post or e-mail back....


"afatdog" <afatdog.hn@yeah.net> wrote in message
news:3f14100d@newsgroups.borland.com...
> I use TADOConnection to connect a database, Access 2000.
>
> ADOQuery->SQL->Add("select");
> ADOQuery->SQL->Add("    *");
> ADOQuery->SQL->Add("from");
> ADOQuery->SQL->Add("    T_XXXX");
> ADOQuery->SQL->Add("where");
> ADOQuery->SQL->Add("        (.....)");
> ADOQuery->SQL->Add(" AND (DateTime >= #2002-07-15 00:00:00#)"); // here
> ADOQuery->SQL->Add(" AND (DateTime <= #2003-07-15 23:59:59#)"); // here
> ADOQuery->Open();
>
> There is some exception was throw : "Parameter object is improperly
defined.
> Inconsistent or incomplete information was provided".
> But this SQL can be correct execute in Access.
> Where is wrong?
>
>
>
Technical Details
Message-ID: <3f1b2bf9@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!c03.atl99!news.webusenet.com!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3f14100d@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,f6df55237653b6e2
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-07-20 17:12:34 PST
Reply-To: "Mike Collins" <mikec@kr8.co.uk>
From: "Mike Collins" <mikec@kr8.co.uk>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3f14100d@newsgroups.borland.com>
Subject: Re: Question about ADO and Access
Date: Mon, 21 Jul 2003 01:08:02 +0100
Lines: 28
Organization: kr8
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 81.2.78.34
Message-ID: <3f1b2bf9@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1058745337 81.2.78.34 (20 Jul 2003 16:55:37 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!c03.atl99!news.webusenet.com!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail