🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: EOleException with JetProvider and AccessDB

#3600
From: Andre Hayward
Date: Thu, 18 Jul 2002 05:29
45 lines
2195 bytes
Hi,

Thought I wouldn't get an answer because I don't think there is an
answer when working with MS products.   

I found that if I use the SHAPE command on the first Master-Detail and
then thereafter use the TADOTable components for linking the rest of
the Master-detail tables I get what I'm looking for - and it works :-)

Andre

jorhaypi@mweb.co.za (Andre Hayward) wrote:

>Hi,

>I'm getting the following EOleException when connecting to an Access
>database with the Jet Data Provider and the Shape Service Provider

>'Either BOF or EOF is True, or the current record has been deleted.
>Requested operation requires a current record'.

>Three tables are linked: Company, Address and Person.  The CommandText
>on the Company TADODataSet is:

>SHAPE  {select * from company order by CompanyCode} 
>APPEND ((

>SHAPE {Select * from Address order by AddressCode} As ChapAddress
>APPEND({select * from Person order by LastName} as ChapPerson
>   RELATE AddressKey TO AddressKey))

>   RELATE CompanyKey TO CompanyKey)

>The ADODataSets for Address and Person are linked with the
>DataSetFields property with the values obtained from the above SHAPE
>command.

>Using BCB5Ent with update#1 installed as well as ADOUpdate#1
>installed.

> Any advise will be appreciated.

>Thanks in advance.

>Andre
Technical Details
Message-ID: <3d364988_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!news-out.visi.com!hermes.visi.com!newsfeed.esat.net!newsfeed.online.be!skynet.be!skynet.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <3d314740_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,c2bb810232012533
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-07-17 21:58:17 PST
From: jorhaypi@mweb.co.za (Andre Hayward)
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Re: EOleException with JetProvider and AccessDB
Date: Thu, 18 Jul 2002 05:29:24 GMT
Organization: Jordaan Hayward Inc.
References: <3d314740_2@dnews>
X-Newsreader: Forte Free Agent 1.0.82
NNTP-Posting-Host: 196.31.187.83
Message-ID: <3d364988_1@dnews>
X-Trace: dnews 1026967944 196.31.187.83 (17 Jul 2002 21:52:24 -0700)
Lines: 50
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!news-out.visi.com!hermes.visi.com!newsfeed.esat.net!newsfeed.online.be!skynet.be!skynet.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews