Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADO Error Numbers.

Status
Not open for further replies.

Ed2020

Programmer
Nov 12, 2001
1,899
GB
I have recently started working seriously with ADO and have come across a very annoying problem - not only are the rror numbers utterly ridiculous (very large negative numbers) but you also get the same error number for several different errors - primary key violation, null primary key, duplicate in distinct key, etc., etc.

Is there any way around this?

Ed Metcalfe.
 
Check out the ErrorValueEnum under the ADO help file. I found the help file on my PC by searching for *ADO*.chm and it found ado210.chm, but this can be different depending on your version of ADO.

Here is a reference that describes some error nummbers.

Apparently the following 3 are the same in number, negative number, and hexidecimal.
3707
-2146824581
0x800A0E7B

The last 4 hex digits 0E7B are 3707 in decimal, which should be the error number returned in the ADO errors collection. I don't know how the negative decimal converts to the other numbers. I am curious on how to convert the negative decimal number to the error number.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top