CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: ADO Error

  1. #1
    Join Date
    Dec 1999
    Location
    Malaysia
    Posts
    56

    ADO Error

    Hi again,
    I'm running ADO2.1 with VB5.0 on an NT machine. Once in a while, I get this error that ADO can't create my Connection object.
    I would like to capture this error and force my application to end. Any suggestions? Another question is, what causes this error in the first place?

    Thanks...

    ____________________________________
    The VB Bugs in my Life...

  2. #2
    Join Date
    Dec 1999
    Location
    Dallas, Texas, USA
    Posts
    59

    Re: ADO Error

    Is the error on the CreateObject function?

    if so then just put in a:

    on error resume next
    set o = CreateObject("ADODB.Connection")
    If Err then
    Unload me
    Exit Sub
    End If




    --
    Chizl
    [email protected]
    http://www.chizl.com/

  3. #3
    Join Date
    Dec 1999
    Location
    Malaysia
    Posts
    56

    Re: ADO Error

    nope...
    Just wanted to know why ADO irritated NT4 sometimes.
    anyway, i got it fixed. =)

    thanks,

    ____________________________________
    The VB Bugs in my Life...

  4. #4
    Join Date
    Dec 1999
    Location
    Dallas, Texas, USA
    Posts
    59

    Re: ADO Error

    I use ADO every day on NT for XML and I have never had a problem. I use ADO 2.11 and havn't had a chance to move to 2.5 yet..

    --
    Chizl
    [email protected]
    http://www.chizl.com/

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