Here is my code:
OpenConnection()
Dim rs1
strSQL="Exec sp_GetBoilerTotals_ByCounty"
Set rs1=objConn.Execute(strSQL)
'Display current county totals
' Response.Write "<hr width='90%'>"
Response.Write "<table width='90%' align='center' rules='all'>"
Response.Write "<tr align='center'><td colspan='8'><font size=+1><b>Year To Date County Totals for " & Year(Now()) & "</b></font></td></tr>"
Response.Write "<tr bgcolor='#D2DCF2'align='center'><td><b>County</td><td><b>Boilers</td><td><b>Inspections</td><td><b>Pending</td><td><b>Certificates Printed</td><td><b>2nd Notices</td><td><b>State Owned</td><td><b>Paid Fees</td></tr>"
i = 0
Do while NOT rs1.EOF
If i Mod 2 = 0 then
Response.Write "<tr bgcolor='white' align='center'>"
Else
Response.Write "<tr bgcolor='#D2DCF2' align='center'>"
End If
If (Not rs1.EOF) Then
Response.Write "<td>" & rs1("Name") & "</td><td>" & formatNumber(rs1("Boiler_Total"),0) & "</td><td>" & formatNumber(rs1("Inspection_Total"),0) & "</td><td>" & formatNumber(rs1("Pending_Total"),0) & "</td><td>" & formatNumber(rs1("Cert_Printed_Total"),0) & "</td><td>" & formatNumber(rs1("Second_Notice_Total"),0) & "</td><td>" & formatNumber(rs1("State_Owned_Total"),0) & "</td><td>" & formatNumber(rs1("Fees_Paid_Total"),0) & "</td></tr>"
End If
i = i + 1
set rs1 = rs1.MoveNext()
Loop
Response.Write "</tr>"
Response.Write "</table>"
CloseConnection()
OpenConnection()
Dim rs1
strSQL="Exec sp_GetBoilerTotals_ByCounty"
Set rs1=objConn.Execute(strSQL)
'Display current county totals
' Response.Write "<hr width='90%'>"
Response.Write "<table width='90%' align='center' rules='all'>"
Response.Write "<tr align='center'><td colspan='8'><font size=+1><b>Year To Date County Totals for " & Year(Now()) & "</b></font></td></tr>"
Response.Write "<tr bgcolor='#D2DCF2'align='center'><td><b>County</td><td><b>Boilers</td><td><b>Inspections</td><td><b>Pending</td><td><b>Certificates Printed</td><td><b>2nd Notices</td><td><b>State Owned</td><td><b>Paid Fees</td></tr>"
i = 0
Do while NOT rs1.EOF
If i Mod 2 = 0 then
Response.Write "<tr bgcolor='white' align='center'>"
Else
Response.Write "<tr bgcolor='#D2DCF2' align='center'>"
End If
If (Not rs1.EOF) Then
Response.Write "<td>" & rs1("Name") & "</td><td>" & formatNumber(rs1("Boiler_Total"),0) & "</td><td>" & formatNumber(rs1("Inspection_Total"),0) & "</td><td>" & formatNumber(rs1("Pending_Total"),0) & "</td><td>" & formatNumber(rs1("Cert_Printed_Total"),0) & "</td><td>" & formatNumber(rs1("Second_Notice_Total"),0) & "</td><td>" & formatNumber(rs1("State_Owned_Total"),0) & "</td><td>" & formatNumber(rs1("Fees_Paid_Total"),0) & "</td></tr>"
End If
i = i + 1
set rs1 = rs1.MoveNext()
Loop
Response.Write "</tr>"
Response.Write "</table>"
CloseConnection()