CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2000
    Location
    Tallahassee, FL
    Posts
    121

    ADOR.Recordset Object

    does anyone know why i might be getting this error?

    code

    m_objRS is of type ADOR.Recordset

    m_objRS.AddNew <--ERROR [The operation requested by the application is not supported by the provider]

    m_objRS.Fields("ID") = 1
    m_objRS.Fields("CEO") = 2

    m_objRS.Update

    why would that give me an unsuporrted error? if it's not provided then why does the AddNew .. Update procedures exist?

    thankx,


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: ADOR.Recordset Object

    >why would that give me an unsuporrted error? if it's not provided then why does the AddNew .. Update procedures exist?

    AddNew is method of the ADO object model.
    ADO simply communicates to the underlying OLEDB providers. If these do not support an ADO method you'll get the error mentioned.
    To find out if a recordset supports Addnew, call the Supports function (or property).


  3. #3
    Join Date
    Jan 2000
    Location
    Tallahassee, FL
    Posts
    121

    Re: ADOR.Recordset Object

    Thanks for the info.
    The Supports( adAddNew ) function is returning FALSE, so I guess it's NOT supported..


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