I am writing an ASP page to take the results of a user survey and enter them into a new record in an access db. It works fine when the user fills out all of the questions (some yes/no, some multiple choice) but if they leave one blank the page returns an error at the line where the db would be updated. So say if question 4 is left blank it chokes on the following line:
rstSurvey("Q4"
= Q4
which is the statement that updates the db. Yet it doesn't mind that I say, earlier on:
Q4 = Request.Form("Q4"
Where should I be testing for nulls and how. If a question is left null I don't want anything sent to the db.
Thanks for any help
rstSurvey("Q4"
which is the statement that updates the db. Yet it doesn't mind that I say, earlier on:
Q4 = Request.Form("Q4"
Where should I be testing for nulls and how. If a question is left null I don't want anything sent to the db.
Thanks for any help