Solved

ODBC Call Failed Error

Posted on 1998-11-23
2
555 Views
Last Modified: 2012-08-13
I'm updating a table residing in AS400 and I'm using ODBC to do this.  I made a small program to narrow down my source of error and I came to a conclusion that IT JUST STOPS updating on the 254th record ALL THE TIME.  I get the error : Run-time error '3000'; Reserved error(-7711); there is no message for this error.  Ran the program once again and I get Run-time error '3146'; ODBC - call failed.
Is there like a barrier somewhere on the ODBC settings that I need to increase to solve this problem.  I got like 35000 records to update on one run!!!
0
Comment
Question by:imby
2 Comments
 
LVL 1

Expert Comment

by:alesh
Comment Utility
Perhaps set bigger timeout period, this could help.
0
 
LVL 7

Accepted Solution

by:
tward earned 100 total points
Comment Utility
You may be able to get better error descriptions if you include the following in an errorhandler:

Dim errLoop As Error

For Each errLoop In Errors
       
   Call MsgBox("Error #" & errLoop.Number & ":  " & errLoop.Description, vbCritical + vbOKOnly, "Error")
     
Next errLoop

0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now