Re: Microsoft JET Database Engine error '80040e10'
- From: "Daniel Crichton" <msnews@xxxxxxxxxxxxxxxx>
- Date: Wed, 28 Nov 2007 11:35:56 -0000
TonnyD wrote on Tue, 27 Nov 2007 19:47:43 -0800 (PST):
Im not to knowledgeable about asp script so I need a little help. Im
trying to install asppoll and im getting this error;
Microsoft JET Database Engine error '80040e10'
No value given for one or more required parameters.
/asppoll/vote.asp, line 14
This error occurs if you use an object name that isn't present in your
database.
This is the script.<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<!--#include file="dbconnection.inc"-->
<!--#include file="header.inc"-->
<%
ID = Clng(Request.querystring("ID"))
strSQL = "SELECT * FROM tblIP WHERE IP = '" &
request.servervariables("remote_addr") & "' AND pollID=" & ID
SET rsPoll = adoCon.execute(strSQL)
IF rsPoll.EOF Then
rsPoll.close strSQL="UPDATE tblCount SET " &
Request.Form("txtOption") & "
= " & Request.Form("txtOption") & " + 1 WHERE ID = " & ID
Ugh, look up SQL Injection on Google.
SET rsPoll=adoCon.execute(strSQL)
<<<<<<<<<<<<<<<<<[Line 14]>>>>>>>>>>>>
What is the value of Request.Form("txtOption")? If you print that out, that
should give a hint as to what the problem is as that is the name of the
column in the SQL. Put a Reponse.Write strSQL above this, and see what the
output is.
Dan
.
- Follow-Ups:
- Re: Microsoft JET Database Engine error '80040e10'
- From: TonnyD
- Re: Microsoft JET Database Engine error '80040e10'
- References:
- Microsoft JET Database Engine error '80040e10'
- From: TonnyD
- Microsoft JET Database Engine error '80040e10'
- Prev by Date: Microsoft JET Database Engine error '80040e10'
- Next by Date: Re: Addnew method failed on empty recordset
- Previous by thread: Microsoft JET Database Engine error '80040e10'
- Next by thread: Re: Microsoft JET Database Engine error '80040e10'
- Index(es):
Relevant Pages
|
|