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 July 9th, 2003, 01:35 PM
Registered User
 
Join Date: Jul 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default NEWBIE vs the Error Message

Running script. Receving the following message:
----------------------------------------
ADODB.Field error '800a0bcd'

Either BOF or EOF is True, or the current record has been deleted; the operation requested by the application requires a current record.

/AddUser.asp, line 18

-----------------------------------------
Here is the code:

<%
Dim rsUsers
Set rsUsers = Server.CreateObject("ADODB.Recordset")
rsUsers.Open "Persons", objConn, adOpenForwardOnly, adLockOptimistic, adCmdTable

If Session("TableID") <> " " Then
rsUsers.Filter = "TableID = '" & Session("TableID") & "'"
Else
rsUsers.Filter = "EMailAddress = '" & Request.Form("email") & "'" & _
"AND Password = '" & Request.Form("password") & "'"
If rsUsers.EOF Then
rsUsers.AddNew
End If
End If

rsUsers("EMailAddress") = Request.Form("email") <-- (line 18)
rsUsers("Password") = Request.Form("password")
rsUsers("FamilyName") = Request.Form("FamilyName")
rsUsers("GivenName") = Request.Form("GivenName")
rsUsers("StreetAddress1") = Request.Form("StreetAddress")
rsUsers("City") = Request.Form("City")
rsUsers("State") = Request.Form("State")
rsUsers("PostalCode") = Request.Form("PostalCode")
rsUsers("Country") = Request.Form("Country")
rsUsers("Active") = True
rsUsers("LastLongin") = Now
rsUsers.Update

Dim strName, strValue
For each strField in rsUsers.Fields
strName = strField.Name
strValue = strField.Value
Sessions(strName) = strValue
Next
Session("blnValidUser") = True
Response.Redirect "MenuForRegisteredUsers.asp"

%>

ANY HELP WOULD BE APPRECIATED. THANKYOU.
> BENNY P
 
Old December 10th, 2004, 09:50 PM
Authorized User
 
Join Date: Jan 2004
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm sorry you haven't had any replies yet and I would help, but I am having the same problem!!! Here's is my code and the error happens about the same place as yours.

ADODB.Recordset error '800a0bcd'

Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.

updatecouncilsurveyentry.asp, line 24



%
Dim adoCon
Dim rsAddcouncilsurvey
Dim strSQL
Dim lngRecordNo

lngRecordNo = CLng(Request.Form("councilsurveyID"))

Set adoCon = Server.CreateObject("ADODB.Connection")

adoCon.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
             "Data Source=" & Server.MapPath("../admin.mdb")

Set rsAddcouncilsurvey = Server.CreateObject("ADODB.Recordset")

strSQL = "SELECT councilsurvey.username, councilsurvey.peturl, councilsurvey.councilposition, councilsurvey.name, councilsurvey.location, councilsurvey.startedneopets, councilsurvey.howstarted, councilsurvey.joinedguild, councilsurvey.howjoined, councilsurvey.talentsneopets, councilsurvey.talentsoutside, councilsurvey.hobbies, councilsurvey.possession, councilsurvey.website, councilsurvey.otherinfo FROM councilsurvey WHERE councilsurveyID=" & lngRecordNo

rsAddcouncilsurvey.CursorType = 2

rsAddcouncilsurvey.LockType = 3

rsAddcouncilsurvey.Open strSQL, adoCon

rsAddcouncilsurvey.Fields("username") = Request.Form("username")
rsAddcouncilsurvey.Fields("peturl") = Request.Form("peturl")
rsAddcouncilsurvey.Fields("councilposition") = Request.Form("councilposition")
rsAddcouncilsurvey.Fields("name") = Request.Form("name")
rsAddcouncilsurvey.Fields("location") = Request.Form("location")
rsAddcouncilsurvey.Fields("startedneopets") = Request.Form("startedneopets")
rsAddcouncilsurvey.Fields("howstarted") = Request.Form("howstarted")
rsAddcouncilsurvey.Fields("joinedguild") = Request.Form("joinedguild")
rsAddcouncilsurvey.Fields("howjoined") = Request.Form("howjoined")
rsAddcouncilsurvey.Fields("talentsneopets") = Request.Form("talentsneopets")
rsAddcouncilsurvey.Fields("talentsoutside") = Request.Form("talentsneopets")
rsAddcouncilsurvey.Fields("hobbies") = Request.Form("hobbies")
rsAddcouncilsurvey.Fields("possession") = Request.Form("possession")
rsAddcouncilsurvey.Fields("website") = Request.Form("website")
rsAddcouncilsurvey.Fields("otherinfo") = Request.Form("otherinfo")

rsAddcouncilsurvey.Update


rsAddcouncilsurvey.Close
Set rsAddcouncilsurvey = Nothing
Set adoCon = Nothing

Response.Redirect "index.asp"
%>


Now, hopefully we'll find someone to help us!!!

Stacy
 
Old December 13th, 2004, 07:50 AM
Registered User
 
Join Date: Dec 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Stacy

The problem is occurring becuase there is actually no data in the recordset!

This would be because the value in the variable "lngRecordNo" would not be present in the table "councilsurvey". So the select statement wouldn't return any data.

Try the code with a valid value for the variable and then it should work fine.

Mayank
 
Old December 17th, 2004, 07:38 AM
Authorized User
 
Join Date: Nov 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to don baroo Send a message via Yahoo to don baroo
Default

Hi Benny P,

Check your database table and be sure that a field called email is part of the fields.

You can then enter some data into the fields and run the code again.

cheers






Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the error message for a 500 server error? chobo2 C# 2005 1 May 4th, 2008 03:11 AM
asp help for newbie syntax error jennypretty Classic ASP Basics 2 June 1st, 2007 01:08 PM
Ajax newbie with Object Required error bubberz BOOK: Professional Ajax ISBN: 978-0-471-77778-6 1 July 6th, 2006 11:52 AM
Newbie Error Message bdmeyer ASP.NET 2.0 Basics 1 February 13th, 2006 01:08 PM





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