Article View: borland.public.cppbuilder.database.ado
Article #470Re: ADO locate record gives Multi-Step Operation Generated Errors
From: Caleb
Date: Wed, 17 May 2006 12:08
Date: Wed, 17 May 2006 12:08
24 lines
1586 bytes
1586 bytes
ADOTab is a TADOTable*
On Wed, 17 May 2006 08:04:19 -0400, Caleb <nospam@nospam.net> wrote:
>I am trying to see if a record already exists. Here is the code I am
>using, any help would be appreciated. It gives the error stated in
>the subject. The error occurs after the Locate statement.
>
> if(ADOTab->Active == true)
> ADOTab->Active = false;
>
>
>
> ADOTab->CursorLocation = clUseClient;
> ADOTab->TableDirect = true;
> ADOTab->TableName = "Auctions";
>
> ADOTabAuctions->Active = true;
>
> TLocateOptions Opts;
>
> Opts.Clear();
>
> if(ADOTab->Locate("ItemNo", Variant(edtItemNo->Text), Opts)){}
Technical Details
Message-ID:
<9f4m62p1afavvgjq3ft2i7k7rmvq5pvpqk@4ax.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.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-mailReferences:
<p14m62lotd7q7gcn53c21urh58d94ocb88@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,1344424e9b1a269a,start X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII-7-bit From: Caleb <nospam@nospam.net> Newsgroups: borland.public.cppbuilder.database.ado Subject: Re: ADO locate record gives Multi-Step Operation Generated Errors Date: Wed, 17 May 2006 08:08:00 -0400 Reply-To: nospam@nospam.net Message-ID: <9f4m62p1afavvgjq3ft2i7k7rmvq5pvpqk@4ax.com> References: <p14m62lotd7q7gcn53c21urh58d94ocb88@4ax.com> X-Newsreader: Forte Agent 2.0/32.652 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 71.99.9.44 X-Trace: newsgroups.borland.com 1147867663 71.99.9.44 (17 May 2006 05:07:43 -0700) Lines: 25 Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.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