Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADO update
Message
From
06/12/2000 06:22:22
Shihchau Tai
Apic Systems Pte Ltd
Singapore, Singapore
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
ADO update
Miscellaneous
Thread ID:
00449850
Message ID:
00449850
Views:
54
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();
Reply
Map
View

Click here to load this message in the networking platform