here is my trouble - i have 3 pages, the first runs a simple querey and populates a drop down list, the user picks one of the returns and upon submission is sent to the second page - there the user can modify certin fields, once they click on submitting changes the third page takes the modified data, strips out single quotes and updates the table and displays the information that was supposedly written to the table. here is the code on the third page
Dim Comments
Comments = Request.Form("N ewComments")
Dim cnnSimple
Dim rstSimple
Dim strDBPath
Comments = Replace(Comment s, "'", "")
strDBPath = Server.MapPath( "ProjectsReport .mdb")
Set cnnSimple = Server.CreateOb ject("ADODB.Con nection")
cnnSimple.Open "Provider=Micro soft.Jet.OLEDB. 4.0;Data Source=" & strDBPath & ";"
Set rstSimple = cnnSimple.Execu te("UPDATE tblProjects SET Comments = '" & Comments & "' WHERE Project = '" & ProjectName & "'")
Now here is the trouble, the values are passed ok, displayed ok, querey appears to work however the table is not updated - any suggestions.
Dim Comments
Comments = Request.Form("N ewComments")
Dim cnnSimple
Dim rstSimple
Dim strDBPath
Comments = Replace(Comment s, "'", "")
strDBPath = Server.MapPath( "ProjectsReport .mdb")
Set cnnSimple = Server.CreateOb ject("ADODB.Con nection")
cnnSimple.Open "Provider=Micro soft.Jet.OLEDB. 4.0;Data Source=" & strDBPath & ";"
Set rstSimple = cnnSimple.Execu te("UPDATE tblProjects SET Comments = '" & Comments & "' WHERE Project = '" & ProjectName & "'")
Now here is the trouble, the values are passed ok, displayed ok, querey appears to work however the table is not updated - any suggestions.
Comment