Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Operation not allowed in this context
Message
 
 
À
09/10/2001 14:51:53
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Divers
Thread ID:
00565933
Message ID:
00566129
Vues:
22
>>>>I have a data source class that provides ADO record sets and everything seemed to be great with navigation until I recieved the 3219 Operation not allowed in this context Error. This is on a simple select * type rs BOF and EOF are false. Anyone have any insight on this.
>>>>
>>>>My connection string:
>>>>s_conn = "Driver=Microsoft Visual Foxpro Driver;UID=;SourceType=DBF;Deleted=YES;Null=NO;SourceDB=" & m_strTable
>>>
>>>It errors just on the Select?
>>>
>>>Try adding Exclusive=No to the connection string.
>>
>>Oops. The error occurs on moveprevious but not on movenext. The select is beautiful the forward nav works as expected, reverse nav is T.U.
>
>You are probably retrieving a forward-only recordset. You can set the connection or recordset CursorLocation property to adUseClient to create a static rs so you can go forward and backward on the recordset. Or, if you need the server side, set the appropriate attributes so the rs is not forward-only.
>
>Hope this helps.

I will look into this and get back to you. Hopefully I can mark this as an answer. My humble thanks for your time.
~Joe Johnston USA

"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams

Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform