collie
06-26-2008, 05:54 AM
Hi,
I have code that displays results in a table in one column. However, I need to display the results in 2 columns. The number of results return varies.
How can I modify the code to display results in 2 columns?
<table >
<%Do While Not rs.eof%>
<tr>
<td align=center class="defaulttext" width=1><input type=checkbox name="groupID" value="<%=IIF(IsDBNull(rs.Fields.Item("AGr_id").Value), Nothing, rs.Fields.Item("AGr_id").Value)%>" <% If InStr(grStr, "|" & IIF(IsDBNull(rs.Fields.Item("AGr_id").Value), Nothing, rs.Fields.Item("AGr_id").Value) & "|") > 0 Then%> checked<% End If%> <% If Not inmod(session("modAccess"), 4) Then%> disabled <% End If%>></td>
<td class="defaulttext"><%=IIF(IsDBNull(rs.Fields.Item("AGr_name").Value), Nothing, rs.Fields.Item("AGr_name").Value)%></td>
</tr>
<% rs.movenext()%>
<%Loop %>
</table>
Thanks
I have code that displays results in a table in one column. However, I need to display the results in 2 columns. The number of results return varies.
How can I modify the code to display results in 2 columns?
<table >
<%Do While Not rs.eof%>
<tr>
<td align=center class="defaulttext" width=1><input type=checkbox name="groupID" value="<%=IIF(IsDBNull(rs.Fields.Item("AGr_id").Value), Nothing, rs.Fields.Item("AGr_id").Value)%>" <% If InStr(grStr, "|" & IIF(IsDBNull(rs.Fields.Item("AGr_id").Value), Nothing, rs.Fields.Item("AGr_id").Value) & "|") > 0 Then%> checked<% End If%> <% If Not inmod(session("modAccess"), 4) Then%> disabled <% End If%>></td>
<td class="defaulttext"><%=IIF(IsDBNull(rs.Fields.Item("AGr_name").Value), Nothing, rs.Fields.Item("AGr_name").Value)%></td>
</tr>
<% rs.movenext()%>
<%Loop %>
</table>
Thanks