I have an instance where I need to return up to 15 records at one time into a single form for a user to update. I think I have the naming of the form elements licked, but I can't get the database to populate the form correctly. It keeps populating the text boxes with the data from the first record only. How can I get it to populated each box with the correct data? Here is a sample of the code.
<%
count=objRS5.recordcount
SESSION("INDEX"
= count
%>
<html>
<%
i = CInt(Session("Index"
)
j=1
do while j < i+1
%>
<b><font face="Arial" size="4">EIID <%j></font></b>
<p><input type=text name=UDO_<%=j%> value=<%= objRS5("UDO"
%>>
<p><input type=text name=txt_term_UDO_<%=j%> value=<%= objRS5("Term_UDO"
%>>
<p><input type=text name=txt_assets_UDO_<%=j%> value=<%= objRS5("Assets_UDO"
%>>
<p><input type=text name=txt_audit_UDO_<%=j%> value=<%= objRS5("Audit_UDO"
%>></p>
<%
j = j + 1
loop
%>
<%
count=objRS5.recordcount
SESSION("INDEX"
%>
<html>
<%
i = CInt(Session("Index"
j=1
do while j < i+1
%>
<b><font face="Arial" size="4">EIID <%j></font></b>
<p><input type=text name=UDO_<%=j%> value=<%= objRS5("UDO"
<p><input type=text name=txt_term_UDO_<%=j%> value=<%= objRS5("Term_UDO"
<p><input type=text name=txt_assets_UDO_<%=j%> value=<%= objRS5("Assets_UDO"
<p><input type=text name=txt_audit_UDO_<%=j%> value=<%= objRS5("Audit_UDO"
<%
j = j + 1
loop
%>