Article View: comp.lang.pascal.delphi.databases
Article #208Re: update error
From: Oliver Townshend
Date: Fri, 02 Apr 1999 00:00
Date: Fri, 02 Apr 1999 00:00
27 lines
1571 bytes
1571 bytes
> i am working with delphi 4 and btrieve files via ODBC interface. i have a
problem with updating or
> deleting a record from a table using dbnavigator. error message being
'couldn't perform edit because
> another user changed the record' this doesn't seems to make sense as i am
working in a single user
> environment. could anyone help me? thanks in advance!!
My experience is that this happens when you edit a record twice in
succession, which as far as your database and the BDE are concerned, is two
different users. eg:
with Table1 do begin
Edit;
...
Post;
Edit;
...
Post; --- crash here
end;
the only way around this is to make sure you do a Refresh between the first
Post and the second Edit. This could be tricky if you are talking about
DBNavigator or DBGrid doing it. Maybe you will have to enforce a Refresh in
the AfterPost event.
Oliver
Technical Details
Message-ID:
<7e1547$f0n$1@the-fly.zip.com.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<37037375.E6B28ABC@pl.jaring.my>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ffff5,4aa9420c14f90659 X-Google-Attributes: gidffff5,public X-Google-Thread: fb0ea,4aa9420c14f90659 X-Google-Attributes: gidfb0ea,public From: "Oliver Townshend" <oliver@zip.com.au> Subject: Re: update error Date: 1999/04/02 Message-ID: <7e1547$f0n$1@the-fly.zip.com.au> X-Deja-AN: 461779159 References: <37037375.E6B28ABC@pl.jaring.my> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Organization: The Zipsters X-MSMail-Priority: Normal Newsgroups: comp.lang.pascal.delphi.databases,borland.public.delphi.vcl.components.using