Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I can't add new records in empty DataGrids
Message
De
29/01/2002 14:00:25
Larry Santos
Local Data System
Philippines
 
 
À
28/01/2002 12:14:10
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Divers
Thread ID:
00611672
Message ID:
00612337
Vues:
23
>Hi all,
>
>I was trying to add a new record in a empty (no records) recordset and as soon as I write something in a cell, I get -7008 Error: "The current row is not available". This doesn't happen in a DataGrid with records.
>
>
>Any ideas about how to solve this, will be very useful....
>
>Thanks a lot,
>
>glurrea

hi,

Try this....

dim rs as adodb.recordset
Set RS = New ADODB.Recordset
RS.CursorLocation = adUseClient
RS.CursorType = adOpenDynamic
RS.Open "SELECT * FROM table_name", connection_string, adOpenDynamic, adLockOptimistic
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform