hi,
not sure if this is exactly what your are looking for, but it should help you.
If you have a form with a text box for inputting the table name and then post it back to itself you can then use this code:
Code:
<%
p_table_name = Request.form("p_table_name")
set tableSet = Server.CreateObject("ADODB.RecordSet")
tableSet.Open p_table_name, databaseName, adOpenForwardOnly, adLockOptimistic, adCmdTable
p_numberOfColums = tableSet.fields.count
%>
<table>
<tr>
<% for x = 0 to (p_numberofColums - 1 ) %>
<td> <%= tableSet.Fields(x).Name %> </td>
<% next %>
</tr>
<% while not tableSet.EOF %>
<tr> <% for each col in tableSet.Fields %>
<td> <%= col.Value %> </td>
<% next %>
</tr><% tableSet.MoveNext
wend
tableSet.Close
%>
</table>
Bookmarks