p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Classic ASP Databases (http://p2p.wrox.com/forumdisplay.php?f=62)
-   -   Microsoft JET Database Engine error '80040e10' (http://p2p.wrox.com/showthread.php?t=2993)

nvillare August 20th, 2003 11:56 AM

Microsoft JET Database Engine error '80040e10'
 
I already searched the site for this error, but it didn't solve my problem. If someone can help it would be greatly appreciated!

Microsoft JET Database Engine error '80040e10'

No value given for one or more required parameters.

/guestbook.asp, line 17

Code:
  dim RS
  dim mySQL
  set RS = Server.CreateObject("ADODB.Recordset")
  mySQL = "SELECT * FROM SignIn WHERE Post=yes ORDER BY ID DESC"
  RS.Open mySQL, conn //line 17

also conn is from a file (conn.asp) which is included in guestbook.asp

Code:
<%
  dim connString
  dim conn

  connString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=c:\connect\geo.mdb"
  Set conn = Server.CreateObject("ADODB.Connection")
  conn.Open connString

%>

Am I doing something wrong?


Thanks!

nvillare

Imar August 20th, 2003 12:09 PM

Hi there,

Take a look at this page that deals with this specific error type.

I am not 100% sure, but it may be caused by the fact that you use Yes as a WHERE clause value. If I am nit mistaken, changing it to True might solve the problem.

Otherwise, if Post is a Text type column, use ' to delimit the value:

Code:

mySQL = "SELECT * FROM SignIn WHERE Post = 'yes' ORDER BY ID DESC"
HtH

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.


All times are GMT -4. The time now is 08:51 PM.

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