Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADO update
Message
De
06/12/2000 06:22:22
Shihchau Tai
Apic Systems Pte Ltd
Singapore, Singapour
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
ADO update
Divers
Thread ID:
00449850
Message ID:
00449850
Vues:
60
I seem to have a lot of problem using ADO through VFP ODBC. It either doesn't work or it only works occassionally. Anyone knows why is that so? I can't make it work even if it is adCmdTable type.


oConn = Server.CreateObject("ADODB.Connection");
oConn.Open("logolist");

oRs = Server.CreateObject("ADODB.Recordset");
oRs.Open("SELECT * FROM logocategory", oConn, adOpenStatic, adLockOptimistic, adCmdText);

oRsLogo = Server.CreateObject("ADODB.Recordset");
oRsLogo.Open("select * from logolist where imageid=" + lLogoid, oConn, adOpenStatic, adLockOptimistic, adCmdText);
oRsLogo("category") = lCat;
oRsLogo("type") = "L*";

oRsLogo.Update();
Répondre
Fil
Voir

Click here to load this message in the networking platform