you can place a vb script inside your html file to access the dababase, read records based on an sql query and loop through the records in the record set, and then load any table that you want.
this code below is an example that accesses dta from an access database, loops through the records and prints each line of the database table. you can modify it to put values in some table while it's looping through the data.
here's the code:
<SCRIPT LANGUAGE="VBScript">
Option Explicit
'Sub cmdDisplay_OnClick
dim strtext, i, county, zz, startpos
Dim Message
dim eachline
dim crlf
Dim TABSPACE
dim objConnection
dim objRecordset
dim adOpenStatic
dim adLockOptimistic
adOpenStatic = 3
adLockOptimistic = 3
CRLF = Chr(13) & Chr(10)
TABSPACE = Chr(9)
Set objConnection = CreateObject("ADODB.Connection")
Set objRecordSet = CreateObject("ADODB.Recordset")
objConnection.Open _
"Provider= Microsoft.Jet.OLEDB.4.0; " & _
"Data Source=c:\myfolder\my_database.mdb"
objRecordSet.Open "SELECT * FROM some_table", objConnection, adOpenStatic, adLockOptimistic
objRecordSet.MoveFirst
Do Until objRecordSet.EOF
each_line = objRecordset.Fields.Item("data_field")
document.write eachline
objRecordset.MoveNext
Loop
</SCRIPT>