🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Index Functionality ??

#3853
From: Pete Moscatt
Date: Fri, 07 Jun 2002 04:50
41 lines
2162 bytes
I am creating a database app to access and manipulate a MS Access database.

The code that am using is seen below.

When I compile and run this app, I get the following error:

Project MyProject.exe raised exception class EOLeException with message 'Current provider does not support the necessary interface for Index functionality.'

What do I need to do to get around this ?

Pete
PS: Using CBuilder 6.

void __fastcall TfMain::Button_MergeClick(TObject *Sender)
{
  String Str;
  const String ConnStr_Master = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + MasterPATH;
  const String ConnStr_Source = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + SourcePATH;

  ADOConnection_Master -> ConnectionString = ConnStr_Master;
  ADOConnection_Source -> ConnectionString = ConnStr_Source;

  ADOTable_Master -> TableName = "MACHINE";
  ADOTable_Master -> IndexName = "Serial_Number";
  ADOTable_Master -> Open();

  ADODataSet_Source -> CommandText = "SELECT * FROM Machine";
  ADODataSet_Source -> Open();

  ADODataSet_Source -> First();


  while (!ADODataSet_Source -> Eof)
   {
    Str = ADODataSet_Source -> FieldValues["Serial_Number"];
    ADOTable_Master -> Seek(Str, soFirstEQ);

    ADODataSet_Source -> Next();
   };
}
Technical Details
Message-ID: <3d003ba2$1_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!peer.news.opaltelecom.net!newsfeed.icl.net!news.algonet.se!algonet!news000.worldonline.se!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,b1f9837ef67b38b3,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-06-06 22:12:10 PST
From: "Pete Moscatt" <pgmoscatt@optushome.com.au>
Sender: "Pete Moscatt" <pgmoscatt@optushome.com.au>
Reply-To: "Pete Moscatt" <pgmoscatt@optushome.com.au>
Subject: Index Functionality ??
Newsgroups: borland.public.cppbuilder.database.ado
X-User-Info: 203.2.231.20 203.2.231.20    
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3d003ba2$1_1@dnews>
Date: 6 Jun 2002 21:50:42 -0700
X-Trace: dnews 1023425442 207.105.83.65 (6 Jun 2002 21:50:42 -0700)
Lines: 42
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!peer.news.opaltelecom.net!newsfeed.icl.net!news.algonet.se!algonet!news000.worldonline.se!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews