There are two possible workarounds:
- When designing your table, use a primary key (or Index) so
that the rows will be ordered. -or-
- Set the cursor location property on the ASP page to
"rs.CursorLocation =adUseClient" prior to opening the Recordset object. This
sets the cursor to be created on the client.
The solution outlined below describes how to change the
DataForm Wizard generated ASP pages.
In xxxList.ASP and xxxForm.ASP,
go to the following section and add the line marked with the asterisk below:
<%
If fNeedRecordset Then
Set conn= Server.CreateObject("ADODB.Connection")
conn.ConnectionTimeout = Session("conn_ConnectionTimeout")
conn.CommandTimeout = Session("conn_CommandTimeout")
conn.Open Session("conn_ConnectionString"),
Session("conn_RuntimeUserName"), Session("conn_RuntimePassword")
Set cmdTemp = Server.CreateObject("ADODB.Command")
Set rs= Server.CreateObject("ADODB.Recordset")
cmdTemp.CommandText = "SELECT * FROM dbo.""tblSched"""
cmdTemp.CommandType = 1
Set cmdTemp.ActiveConnection = conn
rs.CursorLocation = 3 ' ***** Add this line (3 is the same a
adUseClient)
rs.Open cmdTemp, , 1, 3
End If
%>