Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADO and Free Tables
Message
De
20/02/2000 13:20:05
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
ADO and Free Tables
Divers
Thread ID:
00334614
Message ID:
00334614
Vues:
49
I am just starting to work with ADO and VFP. I am having a problem changing the values in the record set created from a Free Table. The error I am getting is... the Operation Requested is not supported by the provider. The provider is
oConnection = CREATEOBJECT("adodb.connection")
lcCon="Driver={Microsoft Visual FoxPro Driver};UID=;PWD=;"+ ;
"SourceDB="+"c:\test\mydbf.dbf;"+ ;
"SourceType=DBF;Exclusive=no;BackgroundFetch=No;Collate=Machine;"
oConnection.OPEN(lcCon)
oRecordSet = CREATEOBJECT("adodb.recordset")
oRecordSet.OPEN([Select * From c:\test\mydbf Where mydbf.test1 = "Old Value"],oConnection)
I am trying to change a value by
oRecordSet.FIELDS("test1").value = 'New Value'

Any Idea what I am doing wrong?

Thanks in advance.

Bob
I can't believe I get paid to write code..... Its like doing crossword puzzels
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform