Results 1 to 10 of 10

Thread: Database - What does this error mean, and how do I fix it?

Threaded View

  1. #10

    Thread Starter
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Database - What does this error mean, and how do I fix it?

    "Multi-step OLE DB operation generated errors. ..."
    What it means:
    The error message simply means that one or more errors happened... how useful!

    How to solve it:
    If this occurred when opening a connection, your connection details (or software) are likely to be wrong – so check that they are correct, see above for more info.

    The actual errors will be listed somewhere, most likely in object variables that you are using to work with the database. For ADODB code, you can check what the errors were by looking at the Errors collection of the connection object (eg: objConn.Errors) by either adding it as a Watch value in the VB editor, or by iterating the collection in code, eg:
    VB Code:
    1. Dim vErr as Variant  
    2.   For Each vErr In objConn.Errors  'change to the name of your connection object
    3.     Debug.Print "ADO error - " & vErr.Number & ": " & vErr.Description
    4.   Next vErr
    Once you know what the actual errors are (they may be ones listed on this article), you can work on fixing them appropriately.


    Last edited by si_the_geek; Sep 30th, 2013 at 03:14 PM. Reason: fixed links

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