+ Reply to Thread
Results 1 to 3 of 3

ADO Error Numbers

  1. #1
    Forum Contributor
    Join Date
    08-09-2005
    MS-Off Ver
    2003 & 2007
    Posts
    111

    ADO Error Numbers

    What is the relationship between ADO error numbers & named constants as documented in the ADO Error Reference and the numbers accesible via VBA's Err object?

    I've tried in particular raising an error by manually cancelling the logon to my external database, but instead of adErrOperationCancelled with Number = 3712, I'm seeing Err.Number = -2147217842.
    Last edited by dlh; 02-05-2010 at 05:25 PM.

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: ADO Error Numbers

    See this MSKB article. In my experience, if the connection is not established initially, you won't get anything in the Errors collection, so your only recourse is to error handle as usual.
    Remember what the dormouse said
    Feed your head

  3. #3
    Forum Contributor
    Join Date
    08-09-2005
    MS-Off Ver
    2003 & 2007
    Posts
    111

    Re: ADO Error Numbers

    Valuable reading. Thanks for the link.

    (I presume the original error # I saw wasn't an ADO error at all.)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1