Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
New To ASP
Message
 
To
28/08/2000 15:14:56
Todd Wolfe
Certified Marketing Services
Kinderhook, New York, United States
General information
Forum:
Internet
Category:
Active Server Page
Title:
Miscellaneous
Thread ID:
00409946
Message ID:
00410066
Views:
9
>I have a form that inserts in SQL 6.5. Whenever I violate my primary key with the form . I get a sloppy SQL error returned on a page in my browser. Does anyone know how I can trap this and if the error occurs redirect the URL?

Use On Error Resume Next and check for the error number right after you do the insert. If the error occurred, do a response.redirect.
Tim Westmoreland
Software Engineer
Skyline Technologies, Inc.

"Upper classes are a nation's past; the middle class is its future." - Ayn Rand, Russian-born author (1905-1982).
Previous
Reply
Map
View

Click here to load this message in the networking platform