JET Database Engine error '80040e14'

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

  1. #1

    Default JET Database Engine error '80040e14'

    I've got a query command that is checking a field name against it's value.
    The query is pulling from an Access 2000 DB. Here's the script:

    dsn="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=<physical path to DB on
    server>"
    Set cnnCIData = Server.CreateObject("ADODB.Connection")
    cnnCIData.Open dsn

    sqlTrends = "SELECT per,perDisplay FROM trends WHERE " & strAliasT & " = yes
    ORDER BY id DESC "
    Set rstTrends = cnnCIData.Execute(sqlTrends)

    ===========================
    HERE'S THE PROBLEM:
    When strAlias is a value that does not start with a number (i.e. - dog),
    then the query executes just fine. When strAlias does start with a number
    (i.e. - 123dog) then I get the folling error:

    Microsoft JET Database Engine error '80040e14'
    Syntax error in query expression '123dog = yes'.
    ===========================

    Why is this happening only when strAlias starts with a number?? I'm
    confused. Perhaps someone can suggest to me a better way to compose my
    query. Anything is appreciated. Thanks.


    David Guest

  2. Similar Questions and Discussions

    1. Microsoft JET Database Engine error '80040e69'
      Yesterday I wrote about an error I am getting on a ASP page using DSN people responded with some suggestions which I have tried and now I get the...
    2. Error 80040e14 on connecting to database
      Any ideas?? Here is the error I'm getting: <p>Microsoft OLE DB Provider for ODBC Drivers</font> <font face="Arial" size=2>error...
    3. Microsoft JET Database Engine error '80004005'
      Hi, I have windows 2000 server with IIS and I program ASP. I use the string: "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=basedatos.mdb;" to...
    4. Error: Microsoft JET Database Engine (0x80040E07)
      I don't understand when I do (2), it will throw the error when I run the ASP. (1) is working fine. Should I use a single quote between the string in...
    5. HELP! ASP Error '80040e14' ???
      Hi. A few days ago this seemed to have worked fine, and for some reason, I am getting the following error now when trying to access a page. In fact,...
  3. #2

    Default Re: JET Database Engine error '80040e14'

    Why does your column name begin with a number???

    Try

    sqlTrends = "SELECT per,perDisplay FROM trends WHERE [" & strAliasT & "] =
    yes ORDER BY id DESC "


    Aaron Bertrand - MVP Guest

  4. #3

    Default Re: JET Database Engine error '80040e14'

    Thanks, that seemed to do the trick.

    Is it not good practice to have column names that start with numbers?

    "Aaron Bertrand - MVP" <aaron@TRASHaspfaq.com> wrote in message
    news:e9GsrVjoDHA.2404@TK2MSFTNGP12.phx.gbl...
    > Why does your column name begin with a number???
    >
    > Try
    >
    > sqlTrends = "SELECT per,perDisplay FROM trends WHERE [" & strAliasT & "] =
    > yes ORDER BY id DESC "
    >
    >

    David Guest

  5. #4

    Default Re: JET Database Engine error '80040e14'

    > Is it not good practice to have column names that start with numbers?

    No. Too much ambiguity.


    Aaron Bertrand - MVP 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