numbenator
11 Aug 2005, 11:16 AM
Hi all,
I am getting an error on the below :
Im a little confused as to why though. If i remove the line
rs.Fields("studentName") = request.form("studentName")
& rs.Update
then i have no error. Could someone please give me some direction.
<% response.Expires=0 %>
<!--#include file="SSI/_conn.asp"-->
<% Dim rs, updateSQL
Set rs = Server.CreateObject("ADODB.RecordSet")
updateSQL = "SELECT * FROM comments"
rs.open updateSQL, Conn
rs.MoveFirst
rs.Fields("studentName") = request.form("studentName")
rs.Update
rs.Close
%>
I am getting an error on the below :
Im a little confused as to why though. If i remove the line
rs.Fields("studentName") = request.form("studentName")
& rs.Update
then i have no error. Could someone please give me some direction.
<% response.Expires=0 %>
<!--#include file="SSI/_conn.asp"-->
<% Dim rs, updateSQL
Set rs = Server.CreateObject("ADODB.RecordSet")
updateSQL = "SELECT * FROM comments"
rs.open updateSQL, Conn
rs.MoveFirst
rs.Fields("studentName") = request.form("studentName")
rs.Update
rs.Close
%>