Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Microsoft JET Database Engine error '80040e10'

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-09-04, 21:06
jmurrayhead jmurrayhead is offline
Registered User
 
Join Date: May 2004
Posts: 6
Microsoft JET Database Engine error '80040e10'

I am getting this error:

Microsoft JET Database Engine error '80040e10'

No value given for one or more required parameters.

/assignments/management/del.asp, line 37



Here is the code I wrote:

Code:
<form name="initialselect" method="POST" action="del.asp"> <select name="Class"> <option value="HealthCare">Emergency Health Care</option> <option value="Health">Health</option> <option value="PhysEd">Physical Education</option> </select> <input type="submit" value="Load List"><input type="reset"> </form> <p> <% if request.form("Class") = "HealthCare" then response.write ("<form method='POST' action='delsql.asp' name='healthcare'>") Set rs = Conn.Execute("SELECT Key, AssignmentNO, BlockNO FROM HealthCare ORDER BY Key ASC") if rs.eof then Response.write "No records returned." else Response.write ("<Select name='assignments'>") Response.write ("<option></option>") do until rs.eof response.write ("<option value='" & rs("Key") & "'>" & rs("AssignmentNO") & "/" & rs("BlockNO") & "</option>") rs.movenext loop response.write ("</select>") end if response.write ("<input type='submit' value='Delete'>") response.write ("</form>") else if request.form("Class") = "Health" then response.write ("<form method='POST' action='delsql.asp' name='health'>") Set rs = Conn.Execute("SELECT Key, AssignmentNO, BlockNO FROM Health ORDER BY Key ASC") if rs.eof then Response.write "No records returned." else Response.write ("<Select name='assignments'>") Response.write ("<option></option>") do until rs.eof response.write ("<option value='" & rs("Key") & "'>" & rs("AssignmentNO") & "/" & rs("BlockNO") & "</option>") rs.movenext loop response.write ("</select>") end if response.write ("<input type='submit' value='Delete'>") response.write ("</form>") else if request.form("Class") = "PhysEd" then response.write ("<form method='POST' action='delsql.asp' name='physed'>") Set rs = Conn.Execute("SELECT Key, AssignmentNO, BlockNO FROM PhysEd ORDER BY Key ASC") if rs.eof then Response.write "No records returned." else Response.write ("<Select name='assignments'>") Response.write ("<option></option>") do until rs.eof response.write ("<option value='" & rs("Key") & "'>" & rs("AssignmentNO") & "/" & rs("BlockNO") & "</option>") rs.movenext loop response.write ("</select>") end if response.write ("<input type='submit' value='Delete'>") response.write ("</form>") end if end if end if %>

The database connection is an include. The line number that produces the error messages changes depending on what option I select from the drop down list. It's always the line that has the execute statement: (Set rs = Conn.Execute) Any ideas what's wrong?
Reply With Quote
  #2 (permalink)  
Old 06-18-04, 02:36
Bullschmidt Bullschmidt is offline
Guru
 
Join Date: Jun 2003
Location: USA
Posts: 1,024
Well since Key is one of the reserved words listed here:

What are reserved Access, ODBC and T-SQL keywords?
http://www.aspfaq.com/show.asp?id=2080

Perhaps consider putting brackets around the word or changing it:
Set rs = Conn.Execute("SELECT [Key], AssignmentNO, BlockNO FROM HealthCare ORDER BY [Key] ASC")
__________________
J. Paul Schmidt, Freelance Web and Database Developer
www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On