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!

Creating a form to Edit Multiple Records Simultaneously 1

Status
Not open for further replies.

w11z

Programmer
Mar 26, 2001
40
CA
Hello everyone,

I have tried to implement this tutorial:
It's not working for me. This is my code to loop through the resID (to test the tutorial).

<%
Function CleanInput(strReqName)
CleanInput = Replace(Request.Form(strReqName),"'","''")
End Function

Dim id, resID

resID = Split(Request.Form("resID"),",")

For each id in resEncanID
response.write id & ", " & CleanInput("price_" & id) & "<br>"
Next
%>

The result is :

1547, 1
1548,
1549,
1550,

It doesn't give me the price_1548, price_1549, etc. On the first page, the text fields have the appropriate names (price_1547, price_1548, etc)

Can someone help me...

w11z
 
Oups! it should read :
For each id in resID
Not For each id in resEncanID

Thanks
 
Double-check that your Split funciton is splitting on comma-space. For whatever reason they use that as a delimiter (not just comma).
You may want to print out your values with brackets around them so you can tell if there are spaces being added to the front of the id's (or rather, spaces not being removed).

-T

barcode_1.gif
 
Thanks Tarwn... This is exactly what was wrong.

w11z
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top