I am relativly new to asp and am having a problem with a loop.
This is my select statement:
Expand|Select|Wrap|Line Numbers
- strSql = "SELECT newsletters.*, homePage.*, pointsTable.*, pointsTable.for-pointsTable.against as gd FROM newsletters, homePage, pointsTable ORDER BY pointsTable.points DESC, pointsTable.for-pointsTable.against DESC;"
Expand|Select|Wrap|Line Numbers
- ADODB.Field error '80020009'
- Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
- /index.asp, line 0
Below is the looping code:
Expand|Select|Wrap|Line Numbers
- <%if NOT rscuafc.eof then
- do until rscuafc.eof%>
- <tr>
- <td bgcolor="#E6E6FF"><img src="images/spacer.gif" width="1" height="2"></td>
- .
- .
- .
- .
- <td bgcolor="#CCCCCC"><img src="images/spacer.gif" width="1" height="1"></td>
- </tr>
- <%rscuafc.MoveNext
- Loop
- Else
- response.write "Sorry, there are no records."
- End If%>
Thanks in advance.