Login | |
|
 |
Re: upload+update - 3/3/2005 1:15:18 AM
|
|
 |
|
| |
VBS
Posts: 110
Score: 0
Joined: 3/2/2005
From: Lebanon
Status: offline
|
Dear Yutaka, ur code has a big error, which is u used Request("") instead of Request.Form("") or Request.QueryString(""), but i recommend u to use this code instead of the SQL Statement, as in the example bellow: (if u want to stick with SQL Statement , i wrote the correct code under this code) -------------------------------------------------------------- --begin code1-- conn.begintrans Set rs = server.creatobject("ADODB.Recordset") set rs.activeconnection = conn conn.commitTrans rs.open "SELECT * FROM Table_Name WHERE ProjectID =" & request("projectid") & "",conn,2,3 rs.addnew rs.fields("FlagStatus")=request.form("pot") rs.fields("Comments")=request.form("reasons") rs.fields("ProgressStage")=request.form("projectstage") rs.fields("ProgressStatus")=request.form("progress") rs.update --end code1-- ------------------------------------------------------------------- --start code2-- set rs = conn.execute("update Project_Description set FlagStatus='" & request.form("pot") & "', Comments='" & request.form("reasons") & "', ProgressStage='" & request.form("projectstage") & "', ProgressStatus=" & request.form("progress") & " where ProjectID =" & request.form("projectid") & "") --end code2--- Don't Forget to post the result Best Regards Firas S Assaad
|
|
| |
|
|
|
| |
|
|
 |
|
 |
|
|