update query giving error message in asp page

Posted on 2006-06-27
Last Modified: 2008-03-17
This is my code in asp page.....

<title>New Vendor Registration</title>


' response.write(myemailid)
' response.write(myuserid)

if request.form("Submit")<>"" then
   Set con=Server.CreateObject("ADODB.connection")
   Set Rs=Server.CreateObject ("ADODB.Recordset") "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & server.MapPath("../../readwritedata/tenders.mdb")

   insString="UPDATE userid SET emailid='" & myemailid & "'" & " where user_id='"& myuserid & "'"


end if




My error message in IE web browser is

Error Type:
ADODB.Field (0x80020009)
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.

how to resolve this.
however My access table is updated correctly.

Question by:sriramiyer
LVL 18

Expert Comment

ID: 16991942
Why are you creating the recordset object?(Set Rs=Server.CreateObject ("ADODB.Recordset"))

You aren't using it.  Comment it out.

Expert Comment

ID: 16991964
Are you sure vendordetails_new.asp is working? (I guess you are redirecting to another page)

Expert Comment

ID: 16992056
The most common error you mentioned above is due to ....

Either BOF or EOF is True, or the current record has been deleted
ADODB.Recordset (0x800A0BCD)
Either BOF or EOF is True, or the current record has been deleted.
Requested operation requires a current record.
This is a recordset error. It means that you have tried to read into a variable or display in a web page a record from the recordset that has either been deleted or does not exist.

The most common occurance of this error is if you have run a database query that has not returned any records and you have then tried to read in a record from the recordset that contains no data.

You need to first check that there is a record in the recordset before reading it in (eg. 'If NOT rsRecordSet.EOF Then').

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

LVL 16

Expert Comment

by:CWS (haripriya)
ID: 16992064
Try this:

insString="UPDATE userid SET emailid='" & myemailid & "'  where user_id='" & myuserid & "'"

Otherwise, remove trim() and see.

LVL 52

Expert Comment

by:Carl Tawn
ID: 16992443
As XWADPA mentioned, you need to be looking at the page you are redirecting to. There is nothing in the code you posted that can throw the error you have mentioned.

Accepted Solution

karunamoorthy earned 500 total points
ID: 16998444
Hello SriRamIyer,

you can try this

comment the line


Author Comment

ID: 16998447
Thank you karunamoorthy,
It works fine.

Featured Post

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
replace quotes with UTF-8 character 38 97
Select distinct 25 101
Auto Submit on dropdown box 14 66
ASP Button to clear text 4 56
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question