Results 1 to 9 of 9

Thread: Update record error 3251 Microsoft.ACE.OLEDB.12.0

Threaded View

  1. #1

    Thread Starter
    Addicted Member Beengie's Avatar
    Join Date
    Nov 2003
    Location
    Central Valley, CA
    Posts
    243

    Resolved Update record error 3251 Microsoft.ACE.OLEDB.12.0

    Hello,
    I searched for the solution, but I couldn't find a clear answer.

    I am trying to update a record using Microsoft.ACE.OLEDB.12.0 with a MSAccess 2007 DB. I am getting a '3251' error "Current Recordset does not support updating. This may be a limitaion of the provider, or the selected locktype."

    I have researched the locktype enum and the provider information. I am new to using Access 2007 for the DB. Previously I used Access 2000.

    Here is the code in question:
    Code:
    Set cn = New ADODB.Connection
                cn.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;" & _
                    "Data Source=" & App.Path & "\BeengData.accdb"
    cn.Open
    
    rs.Open strSQL, cn, adOpenStatic, adLockOptimistic
    rs.AddNew
    
    rs.Fields("ScheduleName").Value = txtScheduleName.Text
    rs.Update
    Last edited by Beengie; Apr 13th, 2010 at 03:00 PM.
    BeengieHappy.Vaue = (SharksScore > OpponentsScore)

    Go Sharks!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width