VBA ignores an ADO error

E

Ed

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?
 
D

Douglas J. Steele

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.
 
T

Tony Toews [MVP]

Ed said:
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
 
E

Ed

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top