Article View: borland.public.cppbuilder.database.ado
Article #244Re: Help!! ADO Refresh causes error
From: sam
Date: Fri, 05 Jan 2007 07:32
Date: Fri, 05 Jan 2007 07:32
86 lines
3455 bytes
3455 bytes
Vassiliev Again Thank you very much for your help. DataMaster->MYTable->Requery(); Did the trick It updates the local dataset from the server Then I perform the update and all is OK Regards Sam "Vassiliev V. V." <support@oledbdirect.com> wrote in message news:459d71ab$1@newsgroups.borland.com... > 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:
<459dfee9$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<459b560c$2@newsgroups.borland.com> <459b8503@newsgroups.borland.com> <459c47d0@newsgroups.borland.com> <459d71ab$1@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: "sam" <sam@nospam.com> Newsgroups: borland.public.cppbuilder.database.ado References: <459b560c$2@newsgroups.borland.com> <459b8503@newsgroups.borland.com> <459c47d0@newsgroups.borland.com> <459d71ab$1@newsgroups.borland.com> Subject: Re: Help!! ADO Refresh causes error Date: Fri, 5 Jan 2007 18:32:42 +1100 Lines: 88 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 NNTP-Posting-Host: 59.167.234.166 Message-ID: <459dfee9$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1167982313 59.167.234.166 (4 Jan 2007 23:31:53 -0800) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail