CptCrusty1
Programmer
I have a one record table that has a field I need to update with the contents of a variable. In DAO I would used EDIT, modify the field(s), use Update, save, etc. I can't make it work in ADO... Here's my code...
Dim cnn As ADODB.Connection
Dim rst As ADODB.Recordset
Set rst = New ADODB.Recordset
Set cnn = CurrentProject.Connection
Set rst = cnn.Execute("tbl_exports")
rst!Location = strUNC_Conv
rst.Update
rst.Save
My error message is #3251 - Current recordset does not support updating, this may be a limitation of the provider, or a selected Locktype. I looked at .locktype but didn't see any way to change it. Any ideas?
RK
I live to work and I work to live.
Dim cnn As ADODB.Connection
Dim rst As ADODB.Recordset
Set rst = New ADODB.Recordset
Set cnn = CurrentProject.Connection
Set rst = cnn.Execute("tbl_exports")
rst!Location = strUNC_Conv
rst.Update
rst.Save
My error message is #3251 - Current recordset does not support updating, this may be a limitation of the provider, or a selected Locktype. I looked at .locktype but didn't see any way to change it. Any ideas?
RK
I live to work and I work to live.