line 0
but after working from the model code adding line by line when
Code:
<% dim page
dim i
' skip the dummy records
if not rs.eof then
rs.Move (page-1)*rs.pagesize
' Display the records
for i=1 to rs.pagesize
%>
was added (or replaced), that's when the error showed up (even though it said line 0).
THe problem with the model code was that there was no SQL statement (SQL = "SELECT..."). So when framing a table there were too many for/while loops + IFs:
Code:
If Not rs.EOF Then
Response.Write "PageCount : " & rs.PageCount & "<br>" & vbcrlf
Response.Write "Absolute Page : " & rs.AbsolutePage & "<br>" & vbcrlf
Response.Write "Total number of records : " & rs.RecordCount & "<br><br>" & vbcrlf
Dim fldF, intRec
Response.Write "<table border=1 align=center cellpadding=3 cellspacing=0><thead><tr>"
For Each fldF in rs.Fields
Response.Write "<td>" & fldF.Name & "</td>"
Next
Response.Write "</tr></thead><tbody>"
For intRec=1 To rs.PageSize
If Not rs.EOF Then
Response.Write "<tr>"
For Each fldF in rs.Fields
Response.Write "<td>" & fldF.Value & "</td>"
Next
Response.Write "<tr>"
rs.MoveNext
End If
Next
Response.Write "</tbody></table><p>"
So I guess my question should be "How do you replace the table so that I can call as many fieldnames as I choose instead of everything?"
Learning of our true origins.
I feel sorry:
http://www.infowars.com/articles/wor...eknowledge.htm
Foreknowledge of A Natural Disaster
Washington was aware that a deadly Tidal Wave was building up in the Indian Ocean