paging recordset

  • 17 years ago

    Hi,
    I have the following problem: I want to set AbsolutPage, PageSize properties for a recordset; this recordset is filled up with data which result from execution of a stored procedure, but I receive an error msg - provider does not support this opperation or something like this


    I use an ODBC connection (system dsn).


    Here is my code:

    Code:


    Set cmdRaspuns = Server.CreateObject("ADODB.Command")
    Set rs = Server.CreateObject("ADODB.Recordset")


    Set cmdRaspuns.ActiveConnection = cn
    With cmdRaspuns
       .CommandText="sp_getintrebariraspuns"
       .CommandType=adCmdStoredProc
    End With


    Set pId = cmdRaspuns.CreateParameter("@mid", adInteger, adParamInput, 4)
    pId.Value = wId
    cmdRaspuns.Parameters.Append pId


    rs.CursorLocation = 2
    rs.CursorType = 3
    rs.PageSize=10


    Set rs = cmdRaspuns.Execute


    rs.AbsolutePage=CINT(wNumarPagina)

    Code:


    Any help will by appreciated!
    Thanks

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Most software today is very much like an Egyptian pyramid with millions of bricks piled on top of each other, with no structural integrity, but just done by brute force and thousands of slaves” - Alan Kay