BOF/EOF Error that doesn't make sense! Help me!!!!!!!!!!!!

This is a discussion on "BOF/EOF Error that doesn't make sense! Help me!!!!!!!!!!!!" within the Classic ASP section. This forum, and the thread "BOF/EOF Error that doesn't make sense! Help me!!!!!!!!!!!! are both part of the Program Your Website category.



 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Reply
 
LinkBack Thread Tools
  #1  
Old Aug 1st, 2005, 04:02
New Member
Join Date: Aug 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
BOF/EOF Error that doesn't make sense! Help me!!!!!!!!!!!!

ASP Code to query access table:

dbPath = Server.mappath("data\allseasons.mdb")
Set site_content_conn = Server.CreateObject("ADODB.Connection")
site_content_conn.Open "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=" & dbPath

SQL4 = "select * FROM oitems where orderitemID=1"
Set RS4 = Server.CreateObject("ADODB.Recordset")
RS4.open SQL4, site_content_conn, 3, 3, 1
orderID=RS4("orderID")
response.write orderID


Error:
Error Type:
ADODB.Field (0x800A0BCD)
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
/AllSeason/Development/ASP Code/test.asp, line 116

line 116 says:


Access dabase table:
orderitemID orderID numitems
1 555 5

Feel free to email me: dennis_halsey@charter.net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Aug 1st, 2005, 06:00
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
I'd start with changing the SQL statement to

Code: Select all
SQL4 = "select * FROM oitems"
to see if the problem is with the query.

I don't personally use this syntax for opening a recordset
Code: Select all
Set RS4 = Server.CreateObject("ADODB.Recordset") 
RS4.open SQL4, site_content_conn, 3, 3, 1
so maybe someone else will notice if there's a problem with it.

I generally do it with
Code: Select all
set RS4 = site_content_conn.execute(SQL4,,1)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Aug 1st, 2005, 14:17
New Member
Join Date: Aug 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
BOF/EOF Error that doesn't make sense! Help me!!!!!!!!!!!!

I tried it the way you recommended and got the same error. Can you give me something that works. I have done this for years and i do not understand what the problem is. It's driving me nuts! I've worked on it for hours! It has to be soemthing simple.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Aug 1st, 2005, 15:29
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,160
Blog Entries: 7
Thanks: 27
Thanked 19 Times in 16 Posts
Try doing a compact / repair on the database.

The code Catalyst gave you is correct.
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Aug 1st, 2005, 16:20
New Member
Join Date: Aug 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
BOF/EOF Error that doesn't make sense! Help me!!!!!!!!!!!!

I tried compact and repair, still same BOF, EOF error, which means no record is being found, correct?

this is strange because i can see the record in the access database, and why it doesn't query it out confuses the hell out of me!

I can use the same code above and query all the fields of another table in the database.

one table i query, it queries some of the fields and not others. I know i spelled field names right, as I copied them straight out of the database and pasted them into the code.


I have used this same queyr for years and why is it not working now?

I don't get it

I can email the database and the code to anyone and let them try to query the data.

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Aug 1st, 2005, 16:28
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,160
Blog Entries: 7
Thanks: 27
Thanked 19 Times in 16 Posts
maybe this is one of those wierd inexplicable errors. try renaming orderitemID to OI_ID in your DB and update your ASP code accordingly.

I had this happen to me once on a field and after rename it worked.... no idea why though.
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Aug 1st, 2005, 16:42
New Member
Join Date: Aug 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
BOF/EOF Error that doesn't make sense! Help me!!!!!!!!!!!!

changed the field name as you suggested, now getting this error:

Error Type:
Microsoft JET Database Engine (0x80040E10)
No value given for one or more required parameters.

Error occurs on this line:
set RS4 = site_content_conn.execute(SQL4,,1)

this is nuts

Can i email the access database and the code to you?

Thnks,

Dennis
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Aug 1st, 2005, 17:37
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
I only suggest this because I've done it before, but do you have more than one copy of the database on your computer? I've caught myself looking and making changes to a different copy of the file than the website was using.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Aug 2nd, 2005, 04:39
Reputable Member
Join Date: Sep 2004
Posts: 144
Thanks: 0
Thanked 0 Times in 0 Posts
Have you ever used these same variables before and they work? I got this same message once and it was fixed by changing a variable name.

Your database table does have records in it, doesnt it? Only other time I got this error was cause of this.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Aug 2nd, 2005, 10:22
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,160
Blog Entries: 7
Thanks: 27
Thanked 19 Times in 16 Posts
Quote:
Error Type:
Microsoft JET Database Engine (0x80040E10)
No value given for one or more required parameters.
This looks like you forgot to change your ASP code to match the renamed database field.
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
bofeof, error, doesnt, sense, help

Thread Tools

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can someone make sense of these validation errors? alexgeek Web Page Design 7 Oct 10th, 2007 13:38
This makes no sense, HELP! tyro89 Flash & Multimedia Forum 2 Aug 24th, 2007 17:00
Keep getting error message Microsoft VBScript runtime error '800a01a8' cpando1974 Classic ASP 2 Aug 7th, 2007 12:00
Making sense of all the products and terms Kurt Starting Out 1 May 1st, 2007 23:59
web non-sense karinne Free Web Site Critique 20 Mar 28th, 2007 12:27


All times are GMT. The time now is 20:07.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42