maxRow = 7 if rs.recordcount > 8 then maxRow = rs.recordcount for i = 0 to maxRow response.write "<tr><td>"&i&"</td></tr>" next