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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updating A Column Based On A Form Value

Status
Not open for further replies.

LongFeiFengWu

Technical User
Nov 9, 2001
98
US
Here's what I want to do:

<%

SQL = "SELECT * FROM SCORE WHERE SUPID='"& request.form("SUPID") & "' "
SQL = SQL & "AND YEAR1 = "& request.form("YEAR1") &" "

objrec.open SQL,objcon,3,3

objrec(request.form("COLNAME")) = request.form("ITEMVALUE")

objrec.update

%>

Is this something that can be done? Am I going about it the wrong way?

Any help is greatly appreciated as always.


&quot;If nothing within you stays rigid, outward things will disclose themselves. Moving, be like water. Still, be like a mirror. Respond like an echo.&quot; ~ Bruce Lee
 
Nevermind, I fixed it. Yay Me!

&quot;If nothing within you stays rigid, outward things will disclose themselves. Moving, be like water. Still, be like a mirror. Respond like an echo.&quot; ~ Bruce Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top