Wrox Programmer Forums
|
ASP E-commerce As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP E-commerce 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 October 12th, 2004, 12:26 PM
Registered User
 
Join Date: Oct 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Beg. e-comm. with VB,ASP, SQL & MTS

Hi!
 have been tring to submit data to a database.
When i run the page it return with an error of:

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

/JoCofee/checkout.asp

Hope you can help me

Thanks,


 
Old January 9th, 2005, 12:02 AM
Registered User
 
Join Date: Nov 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You definitely need to scour the web and look for database recordset tutorials and follow them closely.

Copy some code and disect it. That is a great way to learn without incurring a lot of expense.

There are also some great books on the market that you find at your local B&N or borders. I think WROX actually publishes one called ASP Databases.

From your question it sounds like your SQL statment is off or you are not using any type of recordset reference in your code to check if any records are to be returned, such as
Code:
IF NOT RS.EOF Then
   Do Until RS.EOF

   strVar1 = RS("field1")

   RS.MoveNext
   Loop
End If
Cheers,
Christian
 
Old January 9th, 2005, 12:04 AM
Registered User
 
Join Date: Nov 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

oops...

hey buddy sorry about the code example. that was for a recordset retrieval and i see you are posting information to a database, most likely using the UPDATE query in your SQL statement.

You are most likely trying to update a record by improperly referencing the identity of the record.

Check out the tutorials online or buy a good book.


Thanks in Advance,
CoolPeep
 
Old January 10th, 2005, 01:32 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Vadivel Send a message via Yahoo to Vadivel
Default

1. Use this line to check End of File / Begining of File :: If RSet.EOF And RSet.BOF Then

2. OR Check this link :: http://www.webthang.co.uk/tuts/tuts_...k_errors.asp#5

Best Regards
Vadivel

MVP ASP/ASP.NET
http://vadivel.thinkingms.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Beg ASP.NET 2.0 VB: Worst book from Wrox rollercoaster BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 3 August 31st, 2006 08:03 AM
Beg. ASP.Net eCommerce with VB.Net - Chapter 5 James Hendrix All Other Wrox Books 0 October 22nd, 2003 10:45 PM





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