it can't be done in HTML
HTML is DUM all it does to format and display the DATA
Code:
Dim connstring 'conection string
Dim rs 'recordset name
Dim SQL 'sql
Dim my_Conn
set my_Conn = Server.CreateObject("ADODB.Connection")
set connstring = Server.CreateObject("ADODB.Connection")
connstring.Open "Provider=SQLOLEDB; Data Source = (local); Initial Catalog = #####;User Id =####; Password=######"
if you save as a inc file
at the top of the ASP pages
<!-- #include file="inc/adovbs.inc" -->
<!--#include file="inc/opendb.inc"-->
mine is called opendb.inc and its in the inc folder.
now get the DATA
1st create a record object
Set Rs = Server.CreateObject("ADODB.Recordset")
2 create the SQL
SSQL = ""
SSQL = SSQL & "SELECT [Note to PDF Sum].* FROM [Note to PDF Sum]"
3 open the SQL or table
must be sql statment
Rs.Open SSQL, connstring, adOpenKeyset, adLockPessimistic, adCmdText
4 now we can do some thing
do until rs.eof
...
..
..
rs.movenext
loop
rs.close
set rs = nothing