Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Syntax error in an UPDATE statement 1

Status
Not open for further replies.

codehead

Programmer
Aug 25, 1999
96
US
Hello All:

I can't seem to get the syntax correct on an UPDATE statement. The "pkey" value is an integer and the statement runs o.k. with an integer value, but not with my "request" statement nested in it.

updateStmt = conn.ExecuteSQL("UPDATE REQ_REQUIREMENTS SET ASSIGNED_POC = '"&request("assigned_poc")&"' WHERE pkey = "&request("pkey")&"")

What am I doing wrong?

Thanks!

 
It's working now. I'm using the hidden input field and a plain request on the following page:

updateStmt = conn.ExecuteSQL("UPDATE REQ_REQUIREMENTS SET ASSIGNED_POC = '"&request("assigned_poc")&"' WHERE pkey = "&request("pkey_value"))

Thanks!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top