Majik_Dance
11-05-2002, 09:55 PM
This is my first time asking a question in here so I hope I follow the Posting Guidelines correctly.
I have a table (as shown below) that will be posting data received from a search form.
I would like to have the Total Records Found & total showing above and below the actual table itself.
The bottom (bottomRw) total part works great but the top (topRw) total part is giving me the headache.
This is a bare-bones representation of the actual table I am using; hopefully, nothing pertinent has been omitted.
Any feedback or help would be greatly appreciated. I am quite sure it is something simple but you never know til you ask. :)
-------------------------------------------------------
<body onload="OnLoads()">
<div align="center"><table border="1" cellpadding="3" cellspacing="0" width="50%">
<tr id="topRw">
<td width="50%">
<font type="arial narrow" size="3" color=red>Total Records Found: <%= recNum%>
</td></tr></table></div><br>
<div align="center"><table border="0" cellpadding="3" cellspacing="0" width="50%">
<font type="arial narrow" size="3">
<tr>
<td width="50%" style="color: rgb(255,255,0); background-color: rgb(0,128,128)">
<div align="center"><p><b>TITLE</b></p></div></td></tr>
<%
SQLqry.MoveFirst
Do Until SQLqry.EOF
recNum = recNum + 1
%>
SQL Query results go here
<%
SQLqry.MoveNext
Loop
%>
</font></table></div><br>
<div align="center"><table border="1" cellpadding="3" cellspacing="0" width="50%">
<tr id="bottomRw">
<td width="50%">
<font type="arial narrow" size="3" color=red>Total Records Found: <%= recNum %>
</td></tr></table></div><br>
<script>
function OnLoads()
{
document.all.topRw.innerText = document.all.bottomRw.innerText
}
</script></body>
I have a table (as shown below) that will be posting data received from a search form.
I would like to have the Total Records Found & total showing above and below the actual table itself.
The bottom (bottomRw) total part works great but the top (topRw) total part is giving me the headache.
This is a bare-bones representation of the actual table I am using; hopefully, nothing pertinent has been omitted.
Any feedback or help would be greatly appreciated. I am quite sure it is something simple but you never know til you ask. :)
-------------------------------------------------------
<body onload="OnLoads()">
<div align="center"><table border="1" cellpadding="3" cellspacing="0" width="50%">
<tr id="topRw">
<td width="50%">
<font type="arial narrow" size="3" color=red>Total Records Found: <%= recNum%>
</td></tr></table></div><br>
<div align="center"><table border="0" cellpadding="3" cellspacing="0" width="50%">
<font type="arial narrow" size="3">
<tr>
<td width="50%" style="color: rgb(255,255,0); background-color: rgb(0,128,128)">
<div align="center"><p><b>TITLE</b></p></div></td></tr>
<%
SQLqry.MoveFirst
Do Until SQLqry.EOF
recNum = recNum + 1
%>
SQL Query results go here
<%
SQLqry.MoveNext
Loop
%>
</font></table></div><br>
<div align="center"><table border="1" cellpadding="3" cellspacing="0" width="50%">
<tr id="bottomRw">
<td width="50%">
<font type="arial narrow" size="3" color=red>Total Records Found: <%= recNum %>
</td></tr></table></div><br>
<script>
function OnLoads()
{
document.all.topRw.innerText = document.all.bottomRw.innerText
}
</script></body>