🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Parameter Errors in ADOQuerry

#464
From: Arnie
Date: Wed, 10 May 2006 16:29
47 lines
2332 bytes
"PK" <thekariuki@yahoo.co.uk> wrote in message 
news:4461c82e$1@newsgroups.borland.com...
>
> Hello!
> Am currently converting the database in my appication from
> Interbase(using InterBase Components) to Oracle 8i(Using the 
> ADO
> components).
> Whenever I fill the SQL property of an ADOQuerry with 
> statements
> that have parameters e.g
> "
> SELECT   SB.NAME, SI.VARIETY, SUM(IIT.QTY) 
> ,SUM(IIT.SPRICE*IIT.QTY)
>
> FROM STOCK_BRAND SB, STOCK_ITEM SI, ITEM_IN_TRANSACTION IIT, 
> TRANZACTION T, UZER U
>
> WHERE IIT.RECEIPTNO=T.RECEIPTNO AND
> U.USERID=T.USERID AND
> IIT.BARCODE=SI.BARCODE AND SB.STOCKBRANDID=SI.STOCKBRANDID AND
> T.TRANZDATE BETWEEN :StartDate  AND :StopDate AND
> T.TILLID LIKE :TillID AND
> U.USERNAME LIKE :UserName
>
> GROUP BY  SB.NAME, SI.VARIETY
> ",
> I get an error whenever I try to set Active=true.
> The error is:
> "Parameter object is improperly defined. Inconsistent or
> incomplete information was provided."
> Note that no error occurred when I used an IBQuerry.
>
> This same problem has made it hard for me to access the fields 
> of
> the querries for use in QReports. Whenever I try to accesss the
> DataField property of QRDBEdit whose DataSet is the querry
> described above, I get the same error as above.
>
> Please help me resolve my problem.
>
> Kind regards,
> PK

Are you setting values into your :parameters?

- Arnie 
Technical Details
Message-ID: <44621485@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4461c82e$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,632b5683f2c93c72
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Arnie" <none>
Newsgroups: borland.public.cppbuilder.database.ado
References: <4461c82e$1@newsgroups.borland.com>
Subject: Re: Parameter Errors in ADOQuerry
Date: Wed, 10 May 2006 12:29:41 -0400
Lines: 49
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 12.29.236.34
Message-ID: <44621485@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1147278469 12.29.236.34 (10 May 2006 09:27:49 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail