List Info

Thread: capture ado error




capture ado error
user name
2006-07-04 23:18:23
Bruce,

I have done quite a lot of VB code with Access and ADO.

If you post the code including the error handling stuff,
I'll have a look at
it.  I wonder if you might be getting an error in your error
handler. 

Also, have you checked in Options? Is "Break on all
errors" turned on?

Also, what database is ADO connecting to?  Access MDB or SQL
Server.

Also is your front-end app and MDB or an ADP?

Ian Warren


-----Original Message-----
From: Discussion for Microsoft Visual Basic Data Access
[mailto:VBDATA-LPEACH.EASE.LSOFT.COM] On Behalf Of Bruce
Sent: Wednesday, 5 July 2006 12:23 AM
To: VBDATA-LPEACH.EASE.LSOFT.COM
Subject: Re: capture ado error

I'm using Access.  I'm using the ADO 2.8 library. 

After an hour or so I gave up.  I captured the user error
that was causing
my error and called it day.  

Thanks for your time.

Bruce


> -----Original Message-----
> From: Discussion for Microsoft Visual Basic Data Access

> [mailto:VBDATA-LPEACH.EASE.LSOFT.COM] On Behalf Of Adelle
Hartley
> Sent: Monday, July 03, 2006 6:55 PM
> To: VBDATA-LPEACH.EASE.LSOFT.COM
> Subject: Re: capture ado error
> 
> Hi, 
> 
> > When my program executes the following line
con.Execute strSQL, the 
> > error opens a VB dialog box instead of my error
handling one.  I'm 
> > assuming it has to do with the error coming from
ADO 
> instead of VB.  
> > Fine.
> 
> Normally that wouldn't be the case.  VB can catch ADO
errors 
> just fine.
> 
> OTOH, if the database driver wants to throw up a
dialog, 
> there is not much you can do about it from VB.  That's
just 
> one reason why database drivers aren't supposed to do
that.
> 
> What database are you using?
> 
> Adelle.
> 
>
------------------------------------------------------------
--
> ------------
> The VBDATA-L list is hosted on a Windows NT(TM) machine

> running L-Soft international's LISTSERV(R) software. 
For 
> subscription/signoff info and archives, see 
> ht
tp://peach.ease.lsoft.com/archives/vbdata-l.html .
>                              COPYRIGHT INFO:
> http://peach.ease.lsoft.com/scripts/wa.exe?SHO
WTPL=COPYRIGHT&L
> =VBDATA-L
> 
> 

------------------------------------------------------------
--------------
The VBDATA-L list is hosted on a Windows NT(TM) machine
running L-Soft
international's LISTSERV(R) software.  For
subscription/signoff info
and archives, see ht
tp://peach.ease.lsoft.com/archives/vbdata-l.html .
                             COPYRIGHT INFO:
http://peach.ease.lsoft.com/scripts/w
a.exe?SHOWTPL=COPYRIGHT&L=VBDATA-L

------------------------------------------------------------
--------------
The VBDATA-L list is hosted on a Windows NT(TM) machine
running L-Soft
international's LISTSERV(R) software.  For
subscription/signoff info
and archives, see ht
tp://peach.ease.lsoft.com/archives/vbdata-l.html .
                             COPYRIGHT INFO:
http://peach.ease.lsoft.com/scripts/w
a.exe?SHOWTPL=COPYRIGHT&L=VBDATA-L

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )