Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADO returns 0 records
Message
De
09/09/1999 09:10:43
Bob Tracy
Independent Consultant
Driftwood, Texas, États-Unis
 
 
À
09/09/1999 09:05:11
Bob Tracy
Independent Consultant
Driftwood, Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00262739
Message ID:
00262835
Vues:
21
P.S.: You are getting the data, execute your code and something like this:

oRS.Fields('any field name').Value or oRS.Fields(n).Value where n is a number representing a field position in your table (it's zero based).

>Paul,
> You're set to a server-side cursor, change to client-side (adUseClient). HTH
>
>Bob
>
>>I'm trying to get Ado working with some Fox databases and keep getting 0 records. The State for both the connection & recordset objects is 1 after the open. I'm using a System DSN pointing to the DBC.
>>
>>Here's the code:
>>oConn = CreateObject("ADODB.Connection")
>>oConn.Open("galsinc")
>>oRS = CreateObject("ADODB.RecordSet")
>>oRs.ActiveConnection = oConn
>>oRs.Source = "SELECT * FROM Customers"
>>oRs.Open
>>?oRs.ReccordCount
>>
>>The last line always returns -1.
>>
>>Grrrr....
Bob Tracy

Never engage in a battle of wits if you're only half armed.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform