Recordset is readonly
Helou,
I'm trying to add recordset in a table. Here is my code:
dim cnn as adodb.connection
dim rst as new adodb.rcordset
cnn.open("...")
rst.Open("select * from tblQSDokumenti", Cnn, ADODB.CursorTypeEnum.adOpenDynamic, ADODB.LockTypeEnum.adLockPessimistic)
rst.AddNew()
rst("ID") = lngMax + 1
rst("Ime") = CStr(ListView1.SelectedItems(0).SubItems(7).Text)
.
.
rst.update
When I try to run this code, I allways get error, that rst 'Item' is readonly.
Am I missing something here.
Thank you for any help.
Dado
|