For "PlanYr" or in general?
For "PlanYr" or in general?
I guess both.
jmurrayhead
If you agree, give me rep.
If you like it here...throw us a few bones to help support us.
Because I don't have an unique rowID since this is a mass/batch update.![]()
Do your input fields reflect this counter? Meaning, input1, input2, input3, etc.
jmurrayhead
If you agree, give me rep.
If you like it here...throw us a few bones to help support us.
Yes, like so...these are hidden but the visible ones are like this too.
Code:<input type="hidden" name="ItemIDRow52" value="59"></TD> <input type="hidden" name="PlanID52" value="1"></TD>
Ok, and what about the PlanYr?
jmurrayhead
If you agree, give me rep.
If you like it here...throw us a few bones to help support us.
No counter on it. I just have it like so:
Compared to these with counter (i):Code:<INPUT TYPE="hidden" NAME="DistrictID" readonly VALUE="<%= sDistricts %>"> <INPUT TYPE="hidden" NAME="PlanYr" readonly VALUE="<%= sPlanYr %>"> <INPUT TYPE="hidden" NAME="PlanID" readonly VALUE="<%= sPlanID %>">
Code:<input type="hidden" name="ItemIDRow<%response.write(i)%>" value="<%=rs("ItemID")%>"></TD> <input type="hidden" name="PlanID<%response.write(i)%>" value="<%=rs("PlanTypeID")%>"></TD>
Okay, so now do you see why your previous code didn't work and Request("PlanYr") does?
jmurrayhead
If you agree, give me rep.
If you like it here...throw us a few bones to help support us.
Yes
But question, does it matter if it goes inside the "Do loop" or should it go on the outside?![]()
Well, I see no need to reassign the variable inside the loop if it's going to have the same value each time. If you have a plan year for each row, then it would be different and you'd have to use the counter.
jmurrayhead
If you agree, give me rep.
If you like it here...throw us a few bones to help support us.
Bookmarks