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

ASP Select Box to DB

Status
Not open for further replies.

Cassien

Programmer
Sep 17, 2002
94
0
0
Update on my previous post...

Take a look at
I'm trying to allow users to populate the right hand box with a number of variables from the left one and then update their data with it.

dim item
for each item in request.Form("Selected")
StrSql = "UPDATE Table2 SET Table2.Data = " & item & " WHERE UName = 'Prac'"
Set MM_editCmd = OBJdbConn.Execute(StrSql)%>
next

That's what I tried to use, but it doesn't seem to think there's anything in the second box.

Any ideas?

Thanks, John
 
second box being Item?

WHERE my_field1="someVAR" AND my_field2="someVAR2"
 
dim item
item= Request.Form("Selected")
 
Hi, thought I'd replied to your last one but the responce doesn't seem to be there... have it all sorted now, just for anyones information did it through a SQL statment for the select * where right != left and then a javascript written SQL query for updating the db.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top