Hermesnunya
11-01-2004, 02:10 PM
Hello All,
I think this should be an easy answer, but I was not able to find it in the tutorial nor by searching the forums.
I am getting an error "3251 Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype."
Set MyConn = New ADODB.Connection
MyConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & NRSTATdblocation & ";"
MyConn.open
Set MyRecSet = MyConn.Execute("SELECT * FROM TestRecords")
MyRecSet.AddNew
I have tried changing the locktype with, but both of these cause different errors:
MyRecSet.LockType = adLockOptimistic
Set MyRecSet = MyConn.Execute("SELECT * FROM TestRecords")
Set MyRecSet = MyConn.Execute("SELECT * FROM TestRecords")
MyRecSet.LockType = adLockOptimistic
Any suggestions?
I couldn't get the INSERT INTO SQL to work. Probably something wrong with the statement... there's 48 fields that I have to make sure to write in correctly.
Thanks,
Jason
I think this should be an easy answer, but I was not able to find it in the tutorial nor by searching the forums.
I am getting an error "3251 Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype."
Set MyConn = New ADODB.Connection
MyConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & NRSTATdblocation & ";"
MyConn.open
Set MyRecSet = MyConn.Execute("SELECT * FROM TestRecords")
MyRecSet.AddNew
I have tried changing the locktype with, but both of these cause different errors:
MyRecSet.LockType = adLockOptimistic
Set MyRecSet = MyConn.Execute("SELECT * FROM TestRecords")
Set MyRecSet = MyConn.Execute("SELECT * FROM TestRecords")
MyRecSet.LockType = adLockOptimistic
Any suggestions?
I couldn't get the INSERT INTO SQL to work. Probably something wrong with the statement... there's 48 fields that I have to make sure to write in correctly.
Thanks,
Jason