Hi,
I am getting the following error when I tried to spread records to various pages on my ASP page:
ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/Active/Reports/MarketingSources/MSList_byCode.asp, line 73
Line 73:
Below is the code:
Any help on this will be highly appreciated.
Thanks
Dabase
I am getting the following error when I tried to spread records to various pages on my ASP page:
ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/Active/Reports/MarketingSources/MSList_byCode.asp, line 73
Line 73:
Code:
Page_Count = rsCVP.PageCount
Below is the code:
Code:
<body>
<!--#include file="adovbs.inc" -->
<%
Dim dbCVP
Dim sql
Dim RSCVP
Dim CmdTemp
Dim Count
Dim i
Dim Color
Dim Page_Size
Dim Current_Page
Dim Page_Count
Page_Size = 15
If Request("Page") = "" Then
Current_Page = 1
Else
Current_Page = CInt(Request("Page"))
End If
Set dbCVP = Server.createObject("ADODB.Connection")
dbCVP.open Application("ConnectionString")
Set CmdTemp = Server.CreateObject("ADODB.Command")
set rsCVP = server.createobject("adodb.recordset")
rsCVP.CursorLocation = adUseClient
rsCVP.Pagesize = Page_Size
cmdTemp.CommandType = adCmdStoredProc
cmdTemp.ActiveConnection = dbCVP
cmdTemp.CommandText = "sp_Marketing_List_by_Codes"
set rsCVP = cmdTemp.Execute
Page_Count = rsCVP.PageCount
If 1 > Current_Page Then Current_Page = 1
If Current_Page > Page_Count Then Current_Page = Page_Count
rsCVP.AbsolutePage = Current_Page
%>
<table border="0" class="style3" align="center">
<tr>
<td><b>Source Code</b></td>
<td><b>Description</b></td>
</tr>
<%
i = 0
while rsCVP.AbsolutePage = Current_Page AND not rsCVP.eof
if i Mod 2 = 0 then
color = "#F8F8F8"
else
color = "#CCCCCC"
end if
response.write("<tr bgcolor=" & color & "><td>" & rsCVP("Code") & "</td><td>" & rsCVP("Description") & "</td></tr>")
i = i + 1
rsCVP.movenext
wend
%>
</table>
<br>
<%
If Current_Page <> 1 Then
Response.Write "<a href=""MSList_byCode.asp?Page="
Response.Write Current_Page - 1
' Where an image is available for Next Page use the line below
'Response.Write """><img src=""../prev_1.gif"" border=""0""></a>" & vbCrLf
Response.Write """>Previous Page</a>" & vbCrLf
Response.Write " " & vbCrLf
End If
If Current_Page < Page_Count Then
Response.Write "<a href=""MSList_byCode.asp?Page="
Response.Write Current_Page + 1
' Where an image is available for Previous Page use the line below
'Response.Write """><img src=""../next_1.gif"" border=""0""></a>" & vbCrLf
Response.Write """>Next Page</a>" & vbCrLf
End IF
%>
%>
</body>
Any help on this will be highly appreciated.
Thanks
Dabase