JET error '80040e10' from Access 2000 query

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

  1. #1

    Default JET error '80040e10' from Access 2000 query

    I wrote this query in Access 2000 the query has no parameters, however
    when I run it on IIS 5.0 it flakes out. Here is the code:

    07 Set Postings = Server.CreateObject("ADODB.Recordset")
    08 Postings.ActiveConnection = MM_Jobs_STRING
    09 Postings.Source = "SELECT Positions.Title, Location.Location,
    Postings.ID FROM (((Postings LEFT JOIN Positions ON
    Postings.ID_Position = Positions.ID) LEFT JOIN Location ON
    Postings.ID_Location = Location.ID) LEFT JOIN Location AS ExamLocation
    ON Postings.ID_Exam_Location = ExamLocation.ID)"
    10 Postings.CursorType = 0
    11 Postings.CursorLocation = 2
    12 Postings.LockType = 1
    13 Postings.Open()

    Here is the error message:
    Microsoft JET Database Engine error '80040e10'

    No value given for one or more required parameters.

    /Careers/Job_Listings/Index-new.asp, line 13

    BTW - The query runs in access and dreamweaver.

    TIA
    Noral Kuhlmann Guest

  2. Similar Questions and Discussions

    1. Error Executing Access Database Query
      The query works in 5, chokes in MX7 Error Message: Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT', or 'UPDATE'. ...
    2. Exception error with date/time (Access 2000)
      I am picking up a strange exception error for the following statement: If Rs.EOF OR DATEDIFF("d",rs("DateTime"),NOW()) Then '// End If Is...
    3. ODBC Query of Access 2000 db using LIKE
      Attempting to query MS Access database with the ODBC drivers for PHP. When using the LIKE statement no records are returned. Example: $query...
    4. ASP, Access 2000, Visual FoxPro, ODBC Error
      Hi, I have a Visual FoxPro database named C:\Test\VFP\DB.DBC. This database has a single table in it Address.DBF. The Address.DBF table is also...
    5. Query crashes Access 2000
      I am working on a Access database for a client that uses office 2000 on winXp, I use OfficeXP.on win2000. Using access 2000 fileformat. Everything...
  3. #2

    Default Re: JET error '80040e10' from Access 2000 query

    What's with all the parens? And why do you need to LEFT JOIN to itself?
    How about:

    set conn = CreateObject("ADODB.Connection")
    conn.open MM_Jobs_String
    sql = "SELECT Positions.Title, Location.Location, Postings.ID " & _
    " FROM Postings " & _
    " LEFT JOIN Positions ON Postings.ID_Position = Positions.ID " & _
    " LEFT JOIN Location ON Postings.ID_Location = Location.ID
    AND Postings.ID_Exam_Location = Location.ExamLocationID"
    set rs = conn.execute(sql)




    "Noral Kuhlmann" <noral@creative-networking.com> wrote in message
    news:f3284be1.0311171534.1e02fb26@posting.google.c om...
    > I wrote this query in Access 2000 the query has no parameters, however
    > when I run it on IIS 5.0 it flakes out. Here is the code:
    >
    > 07 Set Postings = Server.CreateObject("ADODB.Recordset")
    > 08 Postings.ActiveConnection = MM_Jobs_STRING
    > 09 Postings.Source = "SELECT Positions.Title, Location.Location,
    > Postings.ID FROM (((Postings LEFT JOIN Positions ON
    > Postings.ID_Position = Positions.ID) LEFT JOIN Location ON
    > Postings.ID_Location = Location.ID) LEFT JOIN Location AS ExamLocation
    > ON Postings.ID_Exam_Location = ExamLocation.ID)"
    > 10 Postings.CursorType = 0
    > 11 Postings.CursorLocation = 2
    > 12 Postings.LockType = 1
    > 13 Postings.Open()
    >
    > Here is the error message:
    > Microsoft JET Database Engine error '80040e10'
    >
    > No value given for one or more required parameters.
    >
    > /Careers/Job_Listings/Index-new.asp, line 13
    >
    > BTW - The query runs in access and dreamweaver.
    >
    > TIA

    Aaron Bertrand - MVP Guest

  4. #3

    Default Re: JET error '80040e10' from Access 2000 query

    Aaron Bertrand - MVP wrote:
    > What's with all the parens?
    I know - ugly.

    However, Jet requires them. Unfortunately.
    > "Noral Kuhlmann" <noral@creative-networking.com> wrote in message
    > news:f3284be1.0311171534.1e02fb26@posting.google.c om...
    >> I wrote this query in Access 2000 the query has no parameters,
    >> however when I run it on IIS 5.0 it flakes out. Here is the code:
    >>
    >> 07 Set Postings = Server.CreateObject("ADODB.Recordset")
    >> 08 Postings.ActiveConnection = MM_Jobs_STRING
    >> 09 Postings.Source = "SELECT Positions.Title, Location.Location,
    >> Postings.ID FROM (((Postings LEFT JOIN Positions ON
    >> Postings.ID_Position = Positions.ID) LEFT JOIN Location ON
    >> Postings.ID_Location = Location.ID) LEFT JOIN Location AS
    >> ExamLocation ON Postings.ID_Exam_Location = ExamLocation.ID)"
    >> 10 Postings.CursorType = 0
    >> 11 Postings.CursorLocation = 2
    >> 12 Postings.LockType = 1
    >> 13 Postings.Open()
    >>
    >> Here is the error message:
    >> Microsoft JET Database Engine error '80040e10'
    >>
    >> No value given for one or more required parameters.
    >>
    >> /Careers/Job_Listings/Index-new.asp, line 13
    >>
    >> BTW - The query runs in access and dreamweaver.
    >>
    >> TIA

    I'm assuming you've tried to run this query with the Access Query Builder
    .... ?

    Do a

    Response.Write Postings.Source

    to get the actual query being sent to Access. Copy it from the browser
    window and paste it into the SQL View of the Access Query Builder and verify
    that you can run it as-is

    Bob Barrows


    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"


    Bob Barrows Guest

  5. #4

    Default Re: JET error '80040e10' from Access 2000 query

    Thanks for the help, but the suggestion you made did not solve the
    problem. I use the parens to simplify readability. Here is a little
    more background. I have one table that has ID lookup on two other
    tables and I need columns from these other tables. Using Left Joins
    is the only way I know how.

    TIA

    Noral

    "Aaron Bertrand - MVP" <aaron@TRASHaspfaq.com> wrote in message news:<e2WwAQWrDHA.2556@TK2MSFTNGP09.phx.gbl>...
    > What's with all the parens? And why do you need to LEFT JOIN to itself?
    > How about:
    >
    > set conn = CreateObject("ADODB.Connection")
    > conn.open MM_Jobs_String
    > sql = "SELECT Positions.Title, Location.Location, Postings.ID " & _
    > " FROM Postings " & _
    > " LEFT JOIN Positions ON Postings.ID_Position = Positions.ID " & _
    > " LEFT JOIN Location ON Postings.ID_Location = Location.ID
    > AND Postings.ID_Exam_Location = Location.ExamLocationID"
    > set rs = conn.execute(sql)
    >
    >
    >
    >
    > "Noral Kuhlmann" <noral@creative-networking.com> wrote in message
    > news:f3284be1.0311171534.1e02fb26@posting.google.c om...
    > > I wrote this query in Access 2000 the query has no parameters, however
    > > when I run it on IIS 5.0 it flakes out. Here is the code:
    > >
    > > 07 Set Postings = Server.CreateObject("ADODB.Recordset")
    > > 08 Postings.ActiveConnection = MM_Jobs_STRING
    > > 09 Postings.Source = "SELECT Positions.Title, Location.Location,
    > > Postings.ID FROM (((Postings LEFT JOIN Positions ON
    > > Postings.ID_Position = Positions.ID) LEFT JOIN Location ON
    > > Postings.ID_Location = Location.ID) LEFT JOIN Location AS ExamLocation
    > > ON Postings.ID_Exam_Location = ExamLocation.ID)"
    > > 10 Postings.CursorType = 0
    > > 11 Postings.CursorLocation = 2
    > > 12 Postings.LockType = 1
    > > 13 Postings.Open()
    > >
    > > Here is the error message:
    > > Microsoft JET Database Engine error '80040e10'
    > >
    > > No value given for one or more required parameters.
    > >
    > > /Careers/Job_Listings/Index-new.asp, line 13
    > >
    > > BTW - The query runs in access and dreamweaver.
    > >
    > > TIA
    Noral Kuhlmann Guest

  6. #5

    Default Re: JET error '80040e10' from Access 2000 query

    > Thanks for the help, but the suggestion you made did not solve the
    > problem.
    You are still getting "No value given for one or more required parameters."?
    Can you show your exact code, the table structure, some sample data, and
    desired results?
    > tables and I need columns from these other tables. Using Left Joins
    > is the only way I know how.
    I think an INNER JOIN would make more sense.


    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