Click to See Complete Forum and Search --> : ADO Error


valkyrie
December 8th, 1999, 10:47 PM
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...

Chizl
December 10th, 1999, 01:07 AM
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
chizl@NOSPAM.karland.com
http://www.chizl.com/

valkyrie
December 10th, 1999, 01:11 AM
nope...
Just wanted to know why ADO irritated NT4 sometimes.
anyway, i got it fixed. =)

thanks,

____________________________________
The VB Bugs in my Life...

Chizl
December 10th, 1999, 01:15 AM
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
chizl@NOSPAM.karland.com
http://www.chizl.com/