Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 6th, 2006, 08:38 PM
Registered User
 
Join Date: Jun 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default HelpMicrosoft JET Database Engine error '80040e10'

I cannot seem to find my error i keep getting the following error

Microsoft JET Database Engine error '80040e10'

No value given for one or more required parameters.

/private1/tempcartupdate3.asp, line 49

Can any one point out my error cuz i cant.

Thank you all

Here is some snipits

*MyConnection include file is Shown at bottom*



<%

SQLtemp = "SELECT * FROM TempTourPos WHERE Cust_UserName = '" & Request.Cookies("UserName") & "' "
Set rs = MyConnection.Execute(SQLtemp)

while not rs.eof

If Request.Cookies("UserName") = rs("Cust_UserName") then
SQL = "UPDATE TempTourPos SET TourPo = '" & Request.Form("PoNumber") & "', TourTotal = '" & Request.Form("TourTotal") & "', AO_Total = '" & Request.Form("AoTotal") & "', Ship_Total = '" & Request.Form("DelTotal") & "', FPO_Total = '" & Request.Form("FpoTotal") & "' WHERE Cust_UserName = '" & Request.Cookies("UserName") & "' "

MyConnection.Execute(SQL) '<----line 49 here
'response.write(SQL)

'Response.redirect ("test.asp")

End If
rs.MoveNext
Wend

'OnError response.Redirect ("error.asp")
rs.Close
MyConnection.Close
set ConnStr = Nothing

%>

here is the code for the include file

<%
Dim MyConnection
Set MyConnection = Server.CreateObject("ADODB.Connection")
MyConnection.Provider = "Microsoft Jet 4.0 OLE DB Provider"
MyConnection.ConnectionString = "Data Source=D:\home\thomasla\showitbest.com\private1\db \users.mdb"
MyConnection.Properties("Jet OLEDB:Database Password") = "*****"
MyConnection.Open
%>


 
Old June 7th, 2006, 08:53 AM
Registered User
 
Join Date: Jun 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

also when i use the respond.write it displays the following;

UPDATE TempTourPos SET TourPo = '0607200642', TourTotal = '84', AO_Total = '70', Ship_Total = '5', FPO_Total = '159' WHERE Cust_UserName = 'jonnyhip'

to me this is correct.

i have verified the spelling on my tables the connection works on other pages im just so stumped.

 
Old June 7th, 2006, 09:29 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It might be that you are using single quotes for fields that are of a numeric data type.
What are the datatypes of all your fields? It looks like any one of these fields could be causing the problem: TourTotal, AO_Total, Ship_Total and FPO_Total

Woody Z http://www.learntoprogramnow.com
 
Old June 7th, 2006, 09:47 AM
Registered User
 
Join Date: Jun 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I thought about that but i thought if the database was set as those field being text that wouldn't matter. Does it but its possible cuz i do add multiple columns and multiply a couple from the same table to give me the totals. Ill look into thanks.

 
Old June 7th, 2006, 11:49 AM
Registered User
 
Join Date: Jun 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well i changed some things around to test if it was a numbers problem and i still get the same error my respond.write now says

UPDATE TempTourPos SET TourPo = 0607200643, TourTotal = 69, AO_Total = 0, Ship_Total = 0, FPO_Total = 69 WHERE Cust_UserName = 'theone'

I really dont get this doesnt seem to me i am doing anything wrong. to me it seems i have all the parameters covered with a value.

 
Old June 7th, 2006, 03:17 PM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well... Can you hand write a sql statement that DOES work?
That would be an easy step to verify that you have your syntax and all fields correct.
Then you just have your code build the statement to match the one that you know works.

Woody Z http://www.learntoprogramnow.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft JET Database Engine error '80040e10' byronthurman Classic ASP Databases 5 June 8th, 2006 08:20 AM
Microsoft JET Database Engine error '80040e10' froggzrevenge Classic ASP Databases 2 January 10th, 2005 12:44 AM
Microsoft JET Database Engine error '80040e10' waynehultum Classic ASP Databases 15 August 20th, 2004 10:22 AM
Microsoft JET Database Engine error '80040e10' shermttam Classic ASP Databases 9 December 10th, 2003 01:57 AM
Microsoft JET Database Engine error '80040e10' nvillare Classic ASP Databases 1 August 20th, 2003 12:09 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.