I am writing an ASP application using ADO (naturally) for DB access with an ACCESS database.
I am somewhat confused about error checking and the various ASP options -
When I want to see if an Insert or Update db access worked Which error object should I use ?
The ERR one i.e. err.number
The error collection of the Connection object
or the ASPError object
If I use the Connection or ASPError, how does that work in conjunction with regular VBScript error checking using the ERR object?
Also and more specifically, I also want to check for specific ODBC errors, ie. duplicate record key on an insert - anybody have any samole code as to which error numbers to check for? Or perhaps a better way to do this?
Thanks for your help
I am somewhat confused about error checking and the various ASP options -
When I want to see if an Insert or Update db access worked Which error object should I use ?
The ERR one i.e. err.number
The error collection of the Connection object
or the ASPError object
If I use the Connection or ASPError, how does that work in conjunction with regular VBScript error checking using the ERR object?
Also and more specifically, I also want to check for specific ODBC errors, ie. duplicate record key on an insert - anybody have any samole code as to which error numbers to check for? Or perhaps a better way to do this?
Thanks for your help