Classic ASP: On Error Stop

a alepj

New Member
I have an ASP page that runs two SQL insert statements at the beginning before displaying the page. In the event I get a primary key conflict (ie. the inserts have already ran that day), I just want to carry on.My code is basically:\[code\]on error resume next' insert statements\[/code\]Once the statements have been executed, I would like to resume the default error behaviour, where the page dies with an error message.Is there a command, like "on error stop", or "on error die", or "on error default", or something to reset the error handling to it's default behaviour?
 
Back
Top