Joined
·
181 Posts
hello
having problems with the following SQL statement
sql = "UPDATE totals(WK 16) VALUES(" & scorestr &")"_
& " where Username = " &Session("FootballPoolUsername")
Set rs = DbConn.Execute(sql)
displays;
Error Type:
Microsoft JET Database Engine (0x80040E14)
Syntax error in UPDATE statement.
/results.asp, line 235
but when i do a
response.write it displays
UPDATE totals(WK 16) VALUES(13) where Username = MyName
wk 16 is the column i want the value to go into,
13 is the correct value
Myname is also correct
the problem is the error message and nothing is written to the DB.
could anyone point out my mistake?
Thank you
Michael
having problems with the following SQL statement
sql = "UPDATE totals(WK 16) VALUES(" & scorestr &")"_
& " where Username = " &Session("FootballPoolUsername")
Set rs = DbConn.Execute(sql)
displays;
Error Type:
Microsoft JET Database Engine (0x80040E14)
Syntax error in UPDATE statement.
/results.asp, line 235
but when i do a
response.write it displays
UPDATE totals(WK 16) VALUES(13) where Username = MyName
wk 16 is the column i want the value to go into,
13 is the correct value
Myname is also correct
the problem is the error message and nothing is written to the DB.
could anyone point out my mistake?
Thank you
Michael