Home > ASP Development > On error

On error



I am using Access and ASP. I am just trying stuff out.



I created an access database and put some validation in access on some fields.



I created an ASP program to insert into my database.



When I try to insert a record that validates OK with access rules all is fine.

Then I type input that violates the access rules; I hoped to get a helpful message back.



All I got was my message saying an error had occured and it was Error number 0 and native error 2097228.



As I was testing I know it is due to failing a validation in access.



I am learning I wanted to look up this native error, I cannot find it in access help or internet searches where would I look for native errors please?



I know I need to validate client side that is not the issue it is understanding native errors!

    
Guest


--moved to the ASP Forum.



hello patc4 and welcome to aspfree,



when dealing with database, you need to catch errors directly from ADO:

http://www.w3schools.com/ado/ado_ref_error.asp

objConn is the connection object you're using to connect with the database.

Was this answer helpful ? Yes No   
Guest
 
 
Home - About Infoqu - Contact - Privacy Statement - Link to Infoqu - Bookmark Infoqu

Copyright 2007-2008 by Infoqu. All rights reserved