CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 1999
    Posts
    14

    Recordset.AddNew

    lstrCommand = "select * from MyTable"

    With rs.Fields
    .Append "col1", adInteger
    .Append "col2", adInteger
    End With
    rs.Open lstrCommand, cnn, , , adCmdText
    rs.AddNew
    ---->The operation requested is not supported
    by the provider ???

    Note: the Recordset is opened sucessfully

    Thx


  2. #2
    Join Date
    Aug 1999
    Posts
    14

    Re: Recordset.AddNew

    Never mind
    The problem is I set
    rsTable.LockType = adReadLockOnly

    It should be
    rs.LockType = adLockOptimistic



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

Featured