Exception error querying Access database from ASP page... Memo field type?

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

  1. #1

    Default Exception error querying Access database from ASP page... Memo field type?

    Hi!

    Working with an MS Access database from an ASP webpage and I'm getting an
    Exception error...

    Error Type:
    (0x80020009)
    Exception occurred.
    /Projects/App/Mypage.asp, line 184

    The SQL statement looks like so...

    strSQL = "SELECT Cat, MyNote FROM Notes WHERE KeyLink = " & SelKey
    rsSet.Open strSQL, adoCon

    Cat is a 10 character text field, MyNote is a Memo field (and I think the
    memo field is causing the issue), KeyLink is a number, as is the variable
    SelKey.

    I can't update or change any of the components/software on the server.

    Can someone explain why this is happening? I've found a few similar issues
    through Google, but nothing really helpful.


    Noozer Guest

  2. Similar Questions and Discussions

    1. #38458 [Asn->Csd]: Fails to get values of fields following a MEMO type field in MS Access
      ID: 38458 Updated by: wez@php.net Reported By: costas at meezon dot com -Status: Assigned +Status: ...
    2. #38458 [Com]: Fails to get values of fields following a MEMO type field in MS Access
      ID: 38458 Comment by: johnc at inkjetinc dot com Reported By: costas at meezon dot com Status: Assigned Bug...
    3. Format Access memo field?
      Hi all, Just trying to figure out how to format a returned MS Access memo field with Coldfusion. Nothing special. Just want it to retain returns...
    4. Memo Field with Access
      Hopefully someone can help me with this. I have a memo field in Access, I type for example into the text box on the webpage: (ignore the >) *...
    5. MS Access Memo Field and ASP
      I have a memo field in a MS Access table. The contents of the field may look like this: 1. This is number one 2. This is number 2 3. Skipping...
  3. #2

    Default Re: Exception error querying Access database from ASP page...


    "Noozer" <dont.spam@me.here> wrote in message
    news:4REEc.915266$Pk3.429789@pd7tw1no...
    > Hi!
    >
    > Working with an MS Access database from an ASP webpage and I'm getting an
    > Exception error...
    >
    > Error Type:
    > (0x80020009)
    > Exception occurred.
    > /Projects/App/Mypage.asp, line 184
    Oops... I goofed. I actually fixed the SQL statement I posted about by
    adding an extra field, and the error I pasted was located further down the
    page...

    The second error is now also corrected. I was referencing a single field,
    but naming two tables.

    It all looks related to querying a database and having a TEXT or MEMO field
    as the first column.


    Noozer Guest

  4. #3

    Default Re: Exception error querying Access database from ASP page... Memo field type?

    Noozer wrote:
    > Hi!
    >
    > Working with an MS Access database from an ASP webpage and I'm
    > getting an Exception error...
    >
    > Error Type:
    > (0x80020009)
    > Exception occurred.
    > /Projects/App/Mypage.asp, line 184
    >
    > The SQL statement looks like so...
    >
    > strSQL = "SELECT Cat, MyNote FROM Notes WHERE KeyLink = " & SelKey
    > rsSet.Open strSQL, adoCon
    >
    > Cat is a 10 character text field, MyNote is a Memo field (and I think
    > the memo field is causing the issue), KeyLink is a number, as is the
    > variable SelKey.
    >
    > I can't update or change any of the components/software on the server.
    >
    > Can someone explain why this is happening? I've found a few similar
    > issues through Google, but nothing really helpful.
    Are you using ODBC for your connection? If so, switch to the native OLEDB
    Provider for Jet ([url]www.able-consulting.com/ado_conn.htm[/url])

    Bob Barrows

    --
    Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.


    Bob Barrows [MVP] Guest

  5. #4

    Default Re: Exception error querying Access database from ASP page...

    Noozer wrote:
    > "Noozer" <dont.spam@me.here> wrote in message
    > news:4REEc.915266$Pk3.429789@pd7tw1no...
    >> Hi!
    >>
    >> Working with an MS Access database from an ASP webpage and I'm
    >> getting an Exception error...
    >>
    >> Error Type:
    >> (0x80020009)
    >> Exception occurred.
    >> /Projects/App/Mypage.asp, line 184
    >
    > Oops... I goofed. I actually fixed the SQL statement I posted about
    > by adding an extra field, and the error I pasted was located further
    > down the page...
    >
    > The second error is now also corrected. I was referencing a single
    > field, but naming two tables.
    >
    > It all looks related to querying a database and having a TEXT or MEMO
    > field as the first column.
    Again, this is an issue with ODBC. It should not be an issue with OLEDB. If
    it is, then you need to install the latest version of MDAC.

    Bob Barrows
    --
    Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.


    Bob Barrows [MVP] Guest

  6. #5

    Default Re: Exception error querying Access database from ASP page... Memo field type?

    > > Error Type:
    > > (0x80020009)
    > > Exception occurred.
    > Are you using ODBC for your connection? If so, switch to the native OLEDB
    > Provider for Jet ([url]www.able-consulting.com/ado_conn.htm[/url])
    Thanks... Made the change and it's working fine.

    Just wondering if OLEDB is the "preferred" method or just works better in
    this case.



    Noozer Guest

  7. #6

    Default Re: Exception error querying Access database from ASP page... Memo field type?

    Noozer wrote:
    >>> Error Type:
    >>> (0x80020009)
    >>> Exception occurred.
    >
    >> Are you using ODBC for your connection? If so, switch to the native
    >> OLEDB Provider for Jet ([url]www.able-consulting.com/ado_conn.htm[/url])
    >
    > Thanks... Made the change and it's working fine.
    >
    > Just wondering if OLEDB is the "preferred" method or just works
    > better in this case.
    Yes, it's the preferred method, not ony because it works better in this
    case, but also because it works better in a lot of other circumstances. See
    here:
    [url]http://msdn.microsoft.com/library/en-us/ado270/htm/ado_deprecated_components.asp[/url]

    Bob Barrows
    --
    Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.


    Bob Barrows [MVP] Guest

  8. #7

    Default Re: Exception error querying Access database from ASP page... Memo field type?

    > > Just wondering if OLEDB is the "preferred" method or just works
    > > better in this case.
    > Yes, it's the preferred method, not ony because it works better in this
    > case, but also because it works better in a lot of other circumstances.
    See
    > here:
    >
    [url]http://msdn.microsoft.com/library/en-us/ado270/htm/ado_deprecated_components.asp[/url]

    Muchly appreciated...

    Thanks!



    Noozer 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