Using NextRecordset errors

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Using NextRecordset errors

    Does rs.nextrecordset not work when using Access/Jet? I can get it to work
    when I am connecting to a sql database but not an Access database.

    Provider=Microsoft.Jet.OLEDB.4.0

    My code is as follows:
    set rsCakes = Server.CreateObject("ADODB.Recordset")
    rsCakes.ActiveConnection = acConn
    rsCakes.Source = "SELECT * from tblProducts; select * from
    tblCategories"
    rsCakes.CursorType = 2
    rsCakes.CursorLocation = 2
    rsCakes.LockType = 3
    rsCakes.Open
    rsCakes_numRows = 0

    It errors on the rsCakes.Open with the error:
    Microsoft JET Database Engine (0x80040E14)
    Characters found after end of SQL statement.


    Is there a way to do this? Thanks.


    eagletender Guest

  2. Similar Questions and Discussions

    1. CF4.5 Errors in logs and Unix 111 errors!
      :confused; Hi All, I have been getting a lot of Unix 111 errors and there are various errors in my coldfusion logs. I can't find any resources...
    2. sp_helplogins, nextrecordset
      Hi, I am executing the sp_helplogins on my database, in an effort to obtain all the databases and roles a user has, for usage in an ASP menu of...
    3. supress errors at the page level? Undefined index errors.
      I'm creating a simple reply form, and if a form item isn't answered I get an error: "Notice: Undefined index: rb_amntspent in...
    4. where are my errors?
      Hi, all -- My partner and I have done something that gets rid of our error messages, and we're not quite sure what. The identical code base (I...
    5. Pop-up window errors:"translators not loaded due to errors"
      I keep getting pop-up windows when using DWMX....any suggestions as to how to fix this type of error? The pop-up says: at line 16...
  3. #2

    Default Re: Using NextRecordset errors

    Maybe using a stored query, instead of a raw SQL statement?



    "eagletender" <eagletender2001@yahoo.com> wrote in message
    news:vinlvnnvus3i12@corp.supernews.com...
    > Does rs.nextrecordset not work when using Access/Jet? I can get it to
    work
    > when I am connecting to a sql database but not an Access database.
    >
    > Provider=Microsoft.Jet.OLEDB.4.0
    >
    > My code is as follows:
    > set rsCakes = Server.CreateObject("ADODB.Recordset")
    > rsCakes.ActiveConnection = acConn
    > rsCakes.Source = "SELECT * from tblProducts; select * from
    > tblCategories"
    > rsCakes.CursorType = 2
    > rsCakes.CursorLocation = 2
    > rsCakes.LockType = 3
    > rsCakes.Open
    > rsCakes_numRows = 0
    >
    > It errors on the rsCakes.Open with the error:
    > Microsoft JET Database Engine (0x80040E14)
    > Characters found after end of SQL statement.
    >
    >
    > Is there a way to do this? Thanks.
    >
    >

    Foo Man Chew Guest

  4. #3

    Default Re: Using NextRecordset errors

    It's Jet, not SQL Server. A Jet stored procedure (saved query) can only
    return a single resultset.

    Bob Barrows

    Foo Man Chew wrote:
    > Maybe using a stored query, instead of a raw SQL statement?
    >
    >
    >
    > "eagletender" <eagletender2001@yahoo.com> wrote in message
    > news:vinlvnnvus3i12@corp.supernews.com...
    >> Does rs.nextrecordset not work when using Access/Jet? I can get it
    >> to work when I am connecting to a sql database but not an Access
    >> database.
    >>
    >> Provider=Microsoft.Jet.OLEDB.4.0
    >>
    >> My code is as follows:
    >> set rsCakes = Server.CreateObject("ADODB.Recordset")
    >> rsCakes.ActiveConnection = acConn
    >> rsCakes.Source = "SELECT * from tblProducts; select * from
    >> tblCategories"
    >> rsCakes.CursorType = 2
    >> rsCakes.CursorLocation = 2
    >> rsCakes.LockType = 3
    >> rsCakes.Open
    >> rsCakes_numRows = 0
    >>
    >> It errors on the rsCakes.Open with the error:
    >> Microsoft JET Database Engine (0x80040E14)
    >> Characters found after end of SQL statement.
    >>
    >>
    >> Is there a way to do this? Thanks.


    Bob Barrows Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139