This TSQL is killing me... I was able to update one table using the same Request.form fields. Now the next update is giving me an error. This is the update statement:
DB connection is opened above
and sID and spID are from:
sID=Request.Form("ID")
spID=Request.Form("playerID")
I am receiving the error:
Error Type:
Microsoft OLE DB Provider for SQL Server (0x80040E14)
Invalid column name 'sID'.
Both of the fields from Request.Form are numbers although as I have recently learned they may not be perceived as such.
I have tried:
ltUpdateSql = "UPDATE lteam SET ltID=" & sID & "WHERE user=" & spID
This does nothing obviously.
How do I let the statement know this is not a column name.. Any help with this would be greatly appreciated.
Code:
ltUpdateSql = "UPDATE lteam SET ltID= sID WHERE user=" & spID
conn.Execute(ltUpdateSql)
DB connection is opened above
and sID and spID are from:
sID=Request.Form("ID")
spID=Request.Form("playerID")
I am receiving the error:
Error Type:
Microsoft OLE DB Provider for SQL Server (0x80040E14)
Invalid column name 'sID'.
Both of the fields from Request.Form are numbers although as I have recently learned they may not be perceived as such.
I have tried:
ltUpdateSql = "UPDATE lteam SET ltID=" & sID & "WHERE user=" & spID
This does nothing obviously.
How do I let the statement know this is not a column name.. Any help with this would be greatly appreciated.