🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Parameter Errors in ADOQuerry

#462
From: PK
Date: Wed, 10 May 2006 11:02
36 lines
2020 bytes
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
Technical Details
Message-ID: <4461c82e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,632b5683f2c93c72,start
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "PK" <thekariuki@yahoo.co.uk>
Sender: "PK" <thekariuki@yahoo.co.uk>
Reply-To: "PK" <thekariuki@yahoo.co.uk>
Subject: Parameter Errors in ADOQuerry
Newsgroups: borland.public.cppbuilder.database.ado
X-User-Info: 81.199.118.173     
X-Forwarded-For: 10.10.10.13, 196.207.27.186
NNTP-Posting-Host: 207.105.83.66
Message-ID: <4461c82e$1@newsgroups.borland.com>
Date: 10 May 2006 04:02:06 -0700
X-Trace: newsgroups.borland.com 1147258926 207.105.83.66 (10 May 2006 04:02:06 -0700)
Lines: 38
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail