ti faccio 1 esempio di come lo faccio io quando voglio N righe o N colonne

codice:
conta = 0
Do while not rs.eof
conta = conta+1

if conta = 0 then
<tr>
end if
<td>pippo</td>

if conta = 4 then
<tr>
conta = 0
end if

rs.movenext
loop
se ti garba ....