Should I remove the On Error Resume Next line?
Main Topics
Browse All TopicsI have a page created using Frontpage with 2 forms that receive data from previous pages. This final page has 2 different submit buttons - the submit button that is active is also based on data passed from the previous page. Both submit buttons submit form data that is written to a database; they then move on to other pages based on user input.
The problem is that the database submits are intermittent. Only slightly more than half of the data is getting submitted. Records that do get submitted are complete, but not all submissions of the form result in a record getting written. All other functions are working as expected. In looking at data that did submit successfully, there is no pattern - it doesn't seem to be based on any field values or user selection.
All database function was done through Frontpage - I did not alter what FP does in any way. My server administrator has checked permissions, and has not found any problems on the server side.
Any help at all would be greatly appreciated! I know my code could probably use some corrective action - as a side question: should I have a DOCTYPE, and what should it be for an asp page?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I've added the code you suggested, left the On Error Resume and have submitted the form 6 times - all 6 successfully wrote to the db - no errors.
I will test intermittently over the weekend to see if I can get it to fail. Not knowing what causes it to fail, I'm not sure how long it will take to be able to see the errors, but will be back in touch when I know more. Thanks, for now.
Surone1 was very quick to give me direction so I could see what's going on. While I have not been able to get the database writes to fail since I added Surone1's code, the answer has given me the tools I'll need when it does fail. At that point, I'll be able to either correct the problem or I'll post another question.
Thanks, Surone1, for your help!
Business Accounts
Answer for Membership
by: Surone1Posted on 2009-09-04 at 06:55:23ID: 25259685
the "on error resume next line" prevents you from seeing what exactly goes wrong..
you could add this to the bottom of the script to see the error description if there is one:
<%
If Err.Number <> 0 then
response.write Err.Description
Error.Clear
End If
%>