🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to use Requery with ADOTable component...

#3358
From: Jerry Irons
Date: Wed, 09 Oct 2002 09:39
27 lines
2059 bytes
Instead of using Requery, try closing and then opening.  

-Jerry


On Sun, 6 Oct 2002 16:50:55 +0100, "MarkR"
<mark.richards8@wapthespamntlworld.com> wrote:

>I have a very simple app which has an ADOTable component, a DBGrid control
>which holds all the key records, and a selection of DBEdit controls which
>allow indiviual fields to be edited, All these are also connected to a
>DBNavigate control.
>
>The database is MSAccess2000.
>
>Basically, I want to have two of the same app running on the same machine at
>the same time. When I do this, everything is fine until I delete a record in
>one app, and then do a ADOTable1->Requery() on the second app, I get an
>error saying
>---------------------------
>Debugger Exception Notification
>---------------------------
>Project caldervale.exe raised exception class EOleException with message
>'Key value for this row was changed or deleted at the data store. The local
>row is now deleted'. Process stopped. Use Step or Run to continue.
>
>What do I need to do so that the second app doesn't fall over?
Technical Details
Message-ID: <04s7qu0tq2r7nmsnjnm6tqrv23jheb9mp9@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!newsfeed.gamma.ru!Gamma.RU!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3da05be0@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,722a814132e5ee2a
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-10-09 03:12:08 PST
From: Jerry Irons <JIrons@compuserve.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Re: How to use Requery with ADOTable component...
Date: Wed, 09 Oct 2002 05:39:42 -0400
Message-ID: <04s7qu0tq2r7nmsnjnm6tqrv23jheb9mp9@4ax.com>
References: <3da05be0@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.91/32.564
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 24.54.9.179
X-Trace: newsgroups.borland.com 1034156246 24.54.9.179 (9 Oct 2002 02:37:26 -0700)
Lines: 28
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!newsfeed.gamma.ru!Gamma.RU!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail