custom error messages

Results 1 to 2 of 2

Thread: custom error messages

  1. #1
    Join Date
    Dec 1969

    Default custom error messages

    I get the following error message if I enter a duplicate record.<BR><BR>Microsoft][ODBC Microsoft Access Driver] The changes you requested to the table were not successful because they would create duplicate values in the index, primary key, or relationship. Change the data in the field or fields that contain duplicate data, remove the index, or redefine the index to permit duplicate entries and try again. <BR><BR>Is there a way to have my own error message page instead?<BR><BR>Thanks<BR>TJ

  2. #2
    Join Date
    Dec 1969

    Default RE: custom error messages

    VBScript (I assume) isn&#039;t great on error handling but you can use:<BR>On Error Resume Next<BR><BR>If Not Err.Number = 0 Then<BR> &#039;there was an error - you could check the err.number for your error and ..<BR> Response.write "Error occurred blah blah"<BR>End If<BR><BR>&#039;make sure you turn error trapping back on<BR><BR>On Error GoTo 0

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts