|
-
Feb 7th, 2007, 01:54 PM
#10
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:
Dim vErr as Variant For Each vErr In objConn.Errors 'change to the name of your connection object Debug.Print "ADO error - " & vErr.Number & ": " & vErr.Description 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|