I have a certain number of records that I loop to get all of the results. when I print these however there are large gaps inbetween if I use page breaks. Therefore, I used a counter to count after how many records to add the page break. Is there an easier way than this to do it?
My code is below. i cannot think of any other way to do it!!!! Thanks for listening
<HEADER>
<style>
P.breakhere {page-break-before: always}
</style>
</HEADER>
...the DB connection string & SQL is here...
<BODY>
<%
do until rs.EOF
%>
... the records along with the counter
<%counter=counter+1%>...
<%
if counter =5 then
%>
<P CLASS="breakhere"></p>
<%end if%>
<%
if counter =11 then
%>
<P CLASS="breakhere"></p>
<%end if%>
...and this 'if counter =' continues for all of the records so that they look alright on the page...
<%
rs.MoveNext
loop
%>
</BODY>
My code is below. i cannot think of any other way to do it!!!! Thanks for listening
<HEADER>
<style>
P.breakhere {page-break-before: always}
</style>
</HEADER>
...the DB connection string & SQL is here...
<BODY>
<%
do until rs.EOF
%>
... the records along with the counter
<%counter=counter+1%>...
<%
if counter =5 then
%>
<P CLASS="breakhere"></p>
<%end if%>
<%
if counter =11 then
%>
<P CLASS="breakhere"></p>
<%end if%>
...and this 'if counter =' continues for all of the records so that they look alright on the page...
<%
rs.MoveNext
loop
%>
</BODY>