A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

VBA ignores an ADO error



 
 
Thread Tools Display Modes
  #1  
Old June 12th, 2009, 08:26 PM posted to microsoft.public.access
Ed
external usenet poster
 
Posts: 733
Default VBA ignores an ADO error

I have an Acc2002 FE, Oracle BE. Trying to do an INSERT. The INSERT fails in
the the trigger. The connection.errors has an error but the ON ERROR
statement is not triggered. Anyone have any ideas?
--
Ed Perkins
  #2  
Old June 12th, 2009, 09:19 PM posted to microsoft.public.access
Douglas J. Steele[_3_]
external usenet poster
 
Posts: 3,143
Default VBA ignores an ADO error

Don't rely on On Error in this case then. After the query runs, check the
Errors collection yourself and base your next steps on that.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"Ed" wrote in message
...
I have an Acc2002 FE, Oracle BE. Trying to do an INSERT. The INSERT fails
in
the the trigger. The connection.errors has an error but the ON ERROR
statement is not triggered. Anyone have any ideas?
--
Ed Perkins



  #3  
Old June 12th, 2009, 11:42 PM posted to microsoft.public.access
Tony Toews [MVP]
external usenet poster
 
Posts: 3,776
Default VBA ignores an ADO error

Ed wrote:

I have an Acc2002 FE, Oracle BE. Trying to do an INSERT. The INSERT fails in
the the trigger. The connection.errors has an error but the ON ERROR
statement is not triggered. Anyone have any ideas?


Please post the line of code that doesn't error out.

Tony
--
Tony Toews, Microsoft Access MVP
Tony's Main MS Access pages - http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
Granite Fleet Manager http://www.granitefleet.com/
  #4  
Old July 6th, 2009, 01:31 AM posted to microsoft.public.access
Ed
external usenet poster
 
Posts: 733
Default VBA ignores an ADO error

Gentlemen,
Sorry I haven't gotten back sooner. I had A MB die and take the C: drive
with it. That is another forum.

The command that is erroring out is an ado EXECUTE command that is doing an
INSERT. The DBA's & I have chased it back from the data from the error log
(I did insert code to check the ADO error class after the EXECUTE) to
determine what was going on.

It is a little dis concerning the the ON ERROR didn't pick up the ADO Error.
I was hoping that someone would say 'OH do this in . . . and th e problem
goes away." Doesn't sound like that will be the case here.

Thanks you for responding.
--
Ed Perkins


"Ed" wrote:

I have an Acc2002 FE, Oracle BE. Trying to do an INSERT. The INSERT fails in
the the trigger. The connection.errors has an error but the ON ERROR
statement is not triggered. Anyone have any ideas?
--
Ed Perkins

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:14 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.