Hi tsubasa,
You can add another loop inside your Do While Not rstSimple.EOF loop which will repeat each row based on the value of the text box. Read the value of the textbox for each line and use the value to set the number of times you perform the loop. e.g.
- <%
-
Do While Not rstSimple.EOF
-
For i = 0 To Request("Labelcnt")
-
%>
-
<tr>
-
<td bgcolor="#FFCC00"><%= rstSimple.Fields("id").Value %> </td>
-
<td bgcolor="#FFCC00"><%= rstSimple.Fields("bin").Value %> </td>
-
<td bgcolor="#FFCC00"><%= rstSimple.Fields("nomen").Value %> </td>
-
<td bgcolor="#FFCC00"><%= rstSimple.Fields("nsn").Value %> </td>
-
<td bgcolor="#FFCC00"><%= rstSimple.Fields("sell").Value %> </td>
-
<td bgcolor="#FFCC00"><p align="center"><input type="text" name="Labelcnt" value="1" size="2"></td>
-
</tr>
-
<%
-
Next
-
rstSimple.MoveNext
-
Loop
-
%>
Because your text boxes are named the same on each row the value will appear as a comma delimited list so you'll need to write a bit of logic that either manes the textboxes dynamically (e.g. append a row number to the end of the name) or extracts the correct value from the list for each row.
Let me know how you get on,
Dr B