🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Help!! ADO Refresh causes error

#243
From: Vassiliev V. V.
Date: Thu, 04 Jan 2007 21:30
69 lines
3084 bytes
Try to set recordset property 'Update Criteria' to adCriteriaKey.

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)


"sam" <sam@nospam.com> �������/�������� � �������� ���������: 
news:459c47d0@newsgroups.borland.com...
> Vassiliev
>
> Thank you for your reply.
> I have a PK in the Table
> What happens is if a record is changed by a second user on another PC
> And I then change the record in the datagrid the application gives me a 
> error
> when I move to the next record.
> How do I overcome this?
>
> How do I refresh a client dataset without getting errors?
>
> Thanks in Advance
>
> Sam
>
> "Vassiliev V. V." <support@oledbdirect.com> wrote in message 
> news:459b8503@newsgroups.borland.com...
>> Ensure that you have PK or at least unique index in table you are 
>> refreshing.
>>
>> //------------------------------------------
>> Regards,
>> Vassiliev V. V.
>> http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
>> ADO.Net
>> http://www.oledbdirect.com - The fastest way to access MS SQL Server,
>> MS Jet (Access) and Interbase (through OLEDB)
>>
>>
>> "sam" <sam@nospam.com> �������/�������� � �������� ���������: 
>> news:459b560c$2@newsgroups.borland.com...
>>> Help
>>>
>>> The following line of code
>>> DataMaster->MYTable->Refresh();
>>>
>>> gives me the following Message
>>>
>>> Debugger Exception Notification
>>> Project my.exe raised exception class EOleException with Message 
>>> 'Insuffient key column information for updating or
>>> refreshing'
>>>
>>> How can I resolve this.
>>>
>>> TIA
>>>
>>> Sam
>>>
>>>
>>>
>>
>>
>
> 
Technical Details
Message-ID: <459d71ab$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.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
References: <459b560c$2@newsgroups.borland.com> <459b8503@newsgroups.borland.com> <459c47d0@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,c0c512eb46ba2a2e
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII
From: "Vassiliev V. V." <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <459b560c$2@newsgroups.borland.com> <459b8503@newsgroups.borland.com> <459c47d0@newsgroups.borland.com>
Subject: Re: Help!! ADO Refresh causes error
Date: Fri, 5 Jan 2007 00:30:01 +0300
Lines: 71
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
X-RFC2646: Format=Flowed; Response
X-Antivirus: avast! (VPS 0701-0, 03.01.2007), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 85.93.138.132
Message-ID: <459d71ab$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1167946155 85.93.138.132 (4 Jan 2007 13:29:15 -0800)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.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