First off, I am relatively new at this.
I have built an edit page for a SQL database. I am able to edit the item but when I click on Save Changes I get the following error:
Microsoft OLD DB Provider for ODBC Drivers error '8004e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]Line 4: Incorrect syntax near 's'.
/edit_lesson.asp, line 49
Here is my code from lines 46-49:
strSQLReturn = "Update LESSONS_LEARNED Set DateSubmitted = '" & strDateSubmitted & "', IssueLessonLearned = '" & strIssueLessonLearned & "', Discussion = '" & strDiscussion & "', Recommendation = '" & strRecommendation & "', Division = '" & strDivision & "', SubmittedBy = '" & strSubmittedBy & "', Phone = '" & strPhone & "' where LessonID = '" & intLessonID & "'"
My code works on a test bed but on the live site I receive this error.
Any help you can provide would be greatly appreciated, as I am quite new at this.
Please let me know if further information is required.
I have built an edit page for a SQL database. I am able to edit the item but when I click on Save Changes I get the following error:
Microsoft OLD DB Provider for ODBC Drivers error '8004e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]Line 4: Incorrect syntax near 's'.
/edit_lesson.asp, line 49
Here is my code from lines 46-49:
strSQLReturn = "Update LESSONS_LEARNED Set DateSubmitted = '" & strDateSubmitted & "', IssueLessonLearned = '" & strIssueLessonLearned & "', Discussion = '" & strDiscussion & "', Recommendation = '" & strRecommendation & "', Division = '" & strDivision & "', SubmittedBy = '" & strSubmittedBy & "', Phone = '" & strPhone & "' where LessonID = '" & intLessonID & "'"
My code works on a test bed but on the live site I receive this error.
Any help you can provide would be greatly appreciated, as I am quite new at this.
Please let me know if further information is required.