Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADO & VFP
Message
De
29/10/1998 11:37:16
 
 
À
29/10/1998 03:21:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00152144
Message ID:
00152379
Vues:
18
You need to tell open how to evaluate the source

try - ors.Open("Area", oconn, 3, 1, 2)

2 = adCmdTable

Syntax
Open Source, ActiveConnection, CursorType, LockType, Options

This works in 2.0 for me

Geno

>I'm having some problems trying to use ADO with a table. I can get it to work with a Select statement but haven't had much luck with a table. Am I supposed to be able to access a table directly? I can't see why I shouldn't be able to. The commands that work are:
>
>oConn = CreateObject("adodb.connection")
>ors = CreateObject("adodb.recordset")
>
>oconn.Open("DSS")
>ors.cursorlocation = 3
>
>ors.Open("Select * from Area",oconn,3,1)
>
>BUT when it doesn't work when I try:
>
>ors.Open("Area",oconn,3,1)
>
>
>
>Has anyone got any ides why this might be happening?
>
>Thanks
>
>Anthony
Geno Prida
Watson Wyatt Worldwide
geno_prida@watsonwyatt.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform