Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I can't add new records in empty DataGrids
Message
From
29/01/2002 14:00:25
Larry Santos
Local Data System
Philippines
 
 
To
28/01/2002 12:14:10
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Miscellaneous
Thread ID:
00611672
Message ID:
00612337
Views:
22
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform