Method,
I see the connection but when you ask a new question it is best to start a new topic.
To display table data from select query recordset you can:
Code:
sql_string = "select * from TABLENAME"
'===========================================================================================================================
'AREA BELOW DOES NOT NEED TO BE CHANGED, JUST CHANGE THE SQL STRING ABOVE
'===========================================================================================================================
Response.write("=============================================<BR>")
Response.write("This page displays the results for the query:<BR>")
Response.write(sql_string & "<BR>")
Response.write("=============================================<BR>")
set recordset = objDBConn.execute(sql_string)
'Has been modified to print a table with the
'table fields as headers and then the records to follow
'Just need to change the sql_string above
If Not recordset.EOF And Not recordset.BOF Then
count = 0
wt = 0
cub = 0
response.write "<table border=1><tr>"
For i = 0 To recordset.Fields.Count - 1
response.write "<td><b>" & recordset(i).Name & "</b></td>"
Next
response.write "</tr>"
while not recordset.eof
response.write "<tr>"
For i = 0 To recordset.Fields.Count - 1
if (not isnull(recordset(i).Value)) then
response.write "<td>" & recordset(i).Value & "</td>"
else
response.write "<td> </td>"
end if
Next
response.write "</tr>"
count = count + 1
recordset.movenext
wend
response.write "</table>"
else
response.write "No Matches"
End If
response.write "<br>Total Records: " & count & "<br><br>"
response.write "...Completed"
recordset.close
objDBConn.close
'================================================================================================================================
======================================
They say, best men are molded out of faults,
And, for the most, become much more the better
For being a little bad.
======================================