Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADO, COM, and VFP6
Message
De
08/04/1999 09:44:59
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00206240
Message ID:
00206401
Vues:
18
I did set up a DSN but it's not set for exclusive. Below is my connection string in the vb com object and how I call it in VFP. I've tried FileDSN's, User,System, and making a connection without using an ODBC data source. This code will work if all tables are closed but ofcourse I need the tables open for my various form controls.



cn.Open "FileDSN=D:\foxproado\vfpapp\fp.dsn;UID=;PWD=;Exclusive=No;OLE DB Services=-2"

rs.CursorLocation = adUseClient

rs.Open "update getrequirements set frag='test'", cn, adOpenKeyset, adLockBatchOptimistic



SET EXCLUSIVE OFF
thisform.olecontrol1.submit("GETREQUIREMENTS 98040 1")
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform