Your problem is easily resolved by using the ADODB command object
instead of a recordset object for performing Updates, Deletes, and
Inserts. These are all action items. For Action items you want to
think in terms of the command object. For reads you can use the
recordset objects. With ADO.Net you can use a DataReader object for
reading; much nicer and easier to work with.
Here is a sample using the command object:
Dim cmd As New ADODB.Command
cmd.ActiveConnection =
"Provider=Microsoft.Jet.OLEDB.4.0;Password="""";Us er ID =;Data
Source=C:\somedir\yourmdb.mdb"
cmd.CommandType = adCmdText
cmd.CommandText = "Update tbl1 Set fld1 = 'test'"
cmd.Execute
cmd.CommandText = "Insert Into tbl1 (fld1, fld2, fld3) " _
& "Values('test1', 'test2', 'test3')
cmd.Execute
cmd.ActiveConnection.Close
Here I am assuming tbl1 contains all text fields. Thus, delimit with
single quotes "'". For numeric - no delimeters, for dates, use "#" the
pound sign.
HTH
Rich
*** Sent via Developersdex
http://www.developersdex.com ***