473,386 Members | 1,790 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Error '80040e10' when everything looks correct

18
Expand|Select|Wrap|Line Numbers
  1. <%
  2. Set rsSystemSpecs = Server.CreateObject("ADODB.Recordset")
  3.     rsSystemSpecs.ActiveConnection = MM_simplex_STRING
  4.     rsSystemSpecs.Source = "SELECT TBLHELICOPTER.MANUFACTURER, TBLHELICOPTER.HELICOPTER, TBLLUGGAGE.* FROM TBLLUGGAGE INNER JOIN (TBLHELICOPTER INNER JOIN TBLPRODUCTTOHELI ON TBLHELICOPTER.HELICOPTERID = TBLPRODUCTTOHELI.HELICOPTERID) ON TBLLUGGAGE.PRODUCT_ID = TBLPRODUCTTOHELI.PRODUCTID WHERE (((TBLHELICOPTER.HELICOPTERID)=" + Replace(rsSystemSpecs__heliid, "'", "''") + " AND TBLPODUCTTOHELI.SYSTEM_TYPE = 'LUGGAGE'));"
  5.     rsSystemSpecs.CursorType = 0
  6.     rsSystemSpecs.CursorLocation = 2
  7.     rsSystemSpecs.LockType = 1
  8.     rsSystemSpecs.Open()
  9. %>
  10.              <% If Not rsSystemSpecs.EOF Then Response.Write("<tr><td height='25' background='../images/menulinksback.gif'><p><img src='../images/featureicon.gif' width='10' height='10'>") %><a href='content.asp?id=<% =Request.QueryString("ID") %>&system=LUGGAGE' style='text-decoration:none'><% If Not rsSystemSpecs.EOF Then Response.Write(" Luggage</a></p></td></tr>") %>
  11.  
however once I put it up on the website I get this error
Microsoft JET Database Engine error '80040e10'
No value given for one or more required parameters.
/english/content.asp, line 126
Line 126 is the rsSystemSpecs.Open() line

I don't see what's wrong with it though
I wrote it like all my other items such as
Expand|Select|Wrap|Line Numbers
  1. <% Set rsSystemSpecs = Server.CreateObject("ADODB.Recordset")
  2.     rsSystemSpecs.ActiveConnection = MM_simplex_STRING
  3.     rsSystemSpecs.Source = "SELECT TBLHELICOPTER.MANUFACTURER, TBLHELICOPTER.HELICOPTER, TBLOILSYSTEMS.*  FROM TBLOILSYSTEMS INNER JOIN (TBLHELICOPTER INNER JOIN TBLPRODUCTTOHELI ON TBLHELICOPTER.HELICOPTERID = TBLPRODUCTTOHELI.HELICOPTERID) ON TBLOILSYSTEMS.PRODUCT_ID = TBLPRODUCTTOHELI.PRODUCTID  WHERE (((TBLHELICOPTER.HELICOPTERID)=" + Replace(rsSystemSpecs__heliid, "'", "''") + " AND TBLPRODUCTTOHELI.SYSTEM_TYPE = 'OIL'));"
  4.     rsSystemSpecs.CursorType = 0
  5.     rsSystemSpecs.CursorLocation = 2
  6.     rsSystemSpecs.LockType = 1
  7.     rsSystemSpecs.Open()
  8. %>              
  9.               <% If Not rsSystemSpecs.EOF Then Response.Write("<tr><td height='25' background='../images/menulinksback.gif'><p><img src='../images/featureicon.gif' width='10' height='10'>") %><a href='content.asp?id=<% =Request.QueryString("ID") %>&system=OIL' style='text-decoration:none'><% If Not rsSystemSpecs.EOF Then Response.Write(" Oil Spill</a></p></td></tr>") %>
  10.  
They look exactly the same except for the table name and the variables however this one and 4 others are working just fine.
Sep 17 '09 #1
3 2377
koager
18
Another problem I seem to be having is after I delete the VBscript off, so no if statement, and just have it display the item
Expand|Select|Wrap|Line Numbers
  1. <tr>
  2. <td height='25' background='../images/menulinksback.gif'>
  3. <p>
  4. <img src='../images/featureicon.gif' width='10' height='10'>
  5. <a href='content.asp?id=<% =Request.QueryString("ID") %>&system=LUGGAGE' style='text-decoration:none'> Luggage</a>
  6. </p>
  7. </td>
  8. </tr>
  9.  
When I click into it, it's not pulling any data from the access database

It's suppose to do this:
First I open it
Expand|Select|Wrap|Line Numbers
  1. ElseIf Request.QueryString("SYSTEM") = "LUGGAGGE" Then
  2.     'See if one of the subsystems from the luggage page was choosen.
  3.     'build a different sql statement if so.
  4.     If Request.QueryString("subsystem") <> "" Then
  5.         luggagestatment = "SELECT * FROM TBLLUGGAGE WHERE PRODUCT_ID = " & Request.QueryString("subsystem")
  6.     Else
  7.         luggagestatment = "SELECT TBLHELICOPTER.MANUFACTURER, TBLHELICOPTER.HELICOPTER, TBLLUGGAGE.* FROM TBLLUGGAGE INNER JOIN (TBLHELICOPTER INNER JOIN TBLPRODUCTTOHELI ON TBLHELICOPTER.HELICOPTERID = TBLPRODUCTTOHELI.HELICOPTERID) ON TBLLUGGAGE.PRODUCT_ID = TBLPRODUCTTOHELI.PRODUCTID WHERE (((TBLHELICOPTER.HELICOPTERID)=" + Replace(rsSystemSpecs__heliid, "'", "''") + " AND TBLPODUCTTOHELI.SYSTEM_TYPE = 'LUGGAGE'));"
  8.     End If 
  9.     Set rsSystemSpecs = Server.CreateObject("ADODB.Recordset")
  10.     rsSystemSpecs.ActiveConnection = MM_simplex_STRING
  11.     rsSystemSpecs.Source = luggagestatment
  12.     rsSystemSpecs.CursorType = 0
  13.     rsSystemSpecs.CursorLocation = 2
  14.     rsSystemSpecs.LockType = 1
  15.     rsSystemSpecs.Open()
  16.  
Then I write it out
Expand|Select|Wrap|Line Numbers
  1. ElseIf Request.QueryString("SYSTEM") = "LUGGAGE" Then
  2.         If Not rsSystemSpecs.EOF Then
  3.             If Request.QueryString ("SUBSYSTEM") <> "" Then
  4.                 'build a table to display system specs
  5.                 strbody = "<table cellpadding=0 cellspacing=0 bgcolor=#FFFFCD class=orangeborder width=""80%"">"
  6.                 strbody = strbody & "<tr>"
  7.                 strbody = strbody & "<td NOWRAP height=22 background=""images/t-systemspecs.gif"">&nbsp;</td>"
  8.                 strbody = strbody & "</tr>"
  9.                 strbody = strbody & "<tr>"
  10.                 strbody = strbody & "<td NOWRAP><p><font size=2><b>" & Model & ":&nbsp;&nbsp;</b>" & rsSystemSpecs("MODEL") & "</font></p></td>"
  11.                 strbody = strbody & "</tr>"
  12.                 strbody = strbody & "<tr>"
  13.                 strbody = strbody & "<td NOWRAP><p><font size=2><b>" & Classification & ":&nbsp;&nbsp;</b>" & rsSystemSpecs("CLASSIFICATION") & "</font></p></td>"
  14.                 strbody = strbody & "</tr>"
  15.                 strbody = strbody & "<tr>"
  16.                 strbody = strbody & "<td NOWRAP><p><font size=2><b>" & VNE & ":&nbsp;&nbsp;</b>" & rsSystemSpecs("VNE") & "</font></p></td>"
  17.                 strbody = strbody & "</tr>"
  18.                 strbody = strbody & "<tr>"
  19.                 strbody = strbody & "<td NOWRAP><p><font size=2><b>" & Payload & ":&nbsp;&nbsp;</b>" & rsSystemSpecs("PAYLOAD") & "</font></p></td>"
  20.                 strbody = strbody & "</tr>"
  21.                 strbody = strbody & "<tr>"
  22.                 strbody = strbody & "<td NOWRAP><p><font size=2><b>" & Dimensions & ":&nbsp;&nbsp;</b>" & rsSystemSpecs("DIMENSIONS") & "</font></p></td>"
  23.                 strbody = strbody & "</tr>"
  24.                 strbody = strbody & "<tr>"
  25.                 strbody = strbody & "<td NOWRAP><p><font size=2><b>" & Capacity & ":&nbsp;&nbsp;</b>" & rsSystemSpecs("CAPACITY") & "</font></p></td>"
  26.                 strbody = strbody & "</tr>"
  27.                 strbody = strbody & "<tr>"
  28.                 strbody = strbody & "<td NOWRAP><p><font size=2><b>" & HelipodWeight & ":&nbsp;&nbsp;</b>" & rsSystemSpecs("HELIPOD_WEIGHT") & "</font></p></td>"
  29.                 strbody = strbody & "</tr>"
  30.                 strbody = strbody & "<tr>"
  31.                 strbody = strbody & "<td NOWRAP><p><font size=2><b>" & HardwareWeight & ":&nbsp;&nbsp;</b>" & rsSystemSpecs("HARDWARE_WEIGHT") & "</font></p></td>"
  32.                 strbody = strbody & "</tr>"
  33.             If rsSystemSpecs("CERTIFICATION_STATUS") <> "" Then
  34.                 strbody = strbody & "<tr>"
  35.                 strbody = strbody & "<td NOWRAP><p><font size=2><b>" & Certification & ":&nbsp;&nbsp;</b>" & rsSystemSpecs("CERTIFICATION_STATUS") & "</font></p></td>"
  36.                 strbody = strbody & "</tr>"
  37.             End If
  38.                 strbody = strbody &  "</table><br><br>"
  39.             Else
  40.                 strbody = "<table cellpadding=4 cellspacing=4 bgcolor=#FFFFCD class=orangeborder>"
  41.                 Do While Not rsSystemSpecs.EOF 
  42.                     strbody = strbody & "<tr>"
  43.                     strbody = strbody & "<td NOWRAP><p><font size=2><a href=""content.asp?id=" & Request.QueryString("id") & "&system=LUGGAGE&subsystem=" & rsSystemSpecs("PRODUCT_ID") & """>Model " & rsSystemSpecs("MODEL") & "</a></font></p></td>"
  44.                     strbody = strbody & "</tr>"
  45.                     rsSystemSpecs.MoveNext()
  46.                 Loop
  47.                 strbody = strbody &  "</table>"
  48.             End If 
  49.             rsSystemSpecs.Close()
  50.             Set rsSystemSpecs = Nothing
  51.         End If
  52.  
I know that statement is spelled incorrectly but that was how the person who originally coded it spelled it and I just copied it over without noticing. It shouldn't matter though since its a variable name and as long as I misspell it correctly in the other instances it should be fine.

My global varirables (Model, VNE, ect) are DIM'd on a separate page but that should be fine
Sep 17 '09 #2
koager
18
Alright nevermind
I solved it
I don't know what was wrong but I retyped the code and it works now...
Sep 17 '09 #3
jhardman
3,406 Expert 2GB
I was going to say the most likely cause is a typo in the query, but I see you got it solved. Glad you got it.

Jared
Sep 18 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: M. Farrenkopf | last post by:
I am in the process of converting a Jet database to ADP using SQL Server 2000. Most of this conversation has been smooth, but now I'm running across a problem that has me stumped. Access 2000 SP3...
3
by: Andrew Connell | last post by:
I have a method which returns a value via an out parm. Here's the prototype of the function: public DbActionResult Insert(out int securityGroupID, string title, string description) Now, when I...
1
by: pbd22 | last post by:
hi. for some reason i am not able to navigate the dom. i keep getting the 'no properties' error but i think i am doing everything right. this is an XML response from an AJAX call. The ajax...
2
by: pericpero | last post by:
Hi There seem to be a number of posts already with this error message but none of them have helped me ... I am trying to execute some dynamic SQL from an ASP form to update or delete from a...
1
by: Akinyemi | last post by:
I created a Database which I named "Address". I went through the Control Panel and created a DSN to enable me connect to the Database through ODBC. I then created a Form with the same fields as...
2
by: katrinkerber | last post by:
Hello, I need help to solve a runtime error that keeps reocurring every time I try to convert an Excel file into an Acess File. I have looked through many forums trying to find help, but I have...
25
by: Blasting Cap | last post by:
I keep getting errors that pop up when I am trying to convert an application from dotnet framework 1.1 to framework 2.0. The old project was saved in sourcesafe from Visual Studio 2003, and I have...
15
by: Dave | last post by:
I am getting the error above intermittantly with an ASP 3.0 page using an MS Access 2003 database. I have searched Google extensively and found the following possible causes for this error: A...
1
by: inika301 | last post by:
Mr Lebans. Could you help me ? We are trying to run your mdb to convert access reports to pdf but we can not, because an error happens. We are just using the A2000SnapShotToPDFver751 that is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.