This post is almost the same as the one you posted at
Dynamic table
If there are two fields in the record set, the code is
<table>
<%dim row1 : row1="<tr>"%>
<%dim row2 : row2="<tr>"%>
<%for not rs.eof then%>
<%row1 = row1 & "<td>" & rs("field1") & "</td>"%>
<%row2 = row2 & "<td>" & rs("field2") & "</td>"%>
<%next%>
<%row1 = row1 & "</tr>"%>
<%row2 = row2 & "</tr>"%>
</table>