Re: Addnew method failed on empty recordset
- From: "Ralph" <nt_consulting64@xxxxxxxxx>
- Date: Wed, 28 Nov 2007 07:37:58 -0600
"Max" <Max@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:227F59E9-BEC3-4D3E-9721-06FE7908D989@xxxxxxxxxxxxxxxx
Hi i am having table Data with field name code, Data Table is empty,showing
when i tried to Addnew, Update method through ADO it fails it is not
any records ?
my syntex is
dim i as integer
cn.open path
rs.open "Data",cn,adOpenDynamic, adLockBatchOptimistic
thanx
for i=1 to 100
rs.addnew
rs!code= i
next
Add a line as follows ...
For i=1 To 100
rs.AddNew
rs!code = i
rs.Update ' - Add this line
Next
It is also possible that you're not using the correct cursor to have an
"updateable" recordset. You can use the Supports() method to determine
this...
http://docs.sun.com/source/817-2514-10/Ch11_ADO101.html#wp1091178
hth
-ralph
.
- Follow-Ups:
- Re: Addnew method failed on empty recordset
- From: Ralph
- Re: Addnew method failed on empty recordset
- Prev by Date: Re: Microsoft JET Database Engine error '80040e10'
- Next by Date: Re: Addnew method failed on empty recordset
- Previous by thread: Microsoft JET Database Engine error '80040e10'
- Next by thread: Re: Addnew method failed on empty recordset
- Index(es):
Relevant Pages
|
|