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.
|
|
|
|
|
![]() |
||
BOF/EOF Error that doesn't make sense! Help me!!!!!!!!!!!!
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
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 |
|
|
|
|||
|
I'd start with changing the SQL statement to
I don't personally use this syntax for opening a recordset
I generally do it with
|
|
|||
|
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.
|
|
||||
|
Try doing a compact / repair on the database.
The code Catalyst gave you is correct.
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
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 |
|
||||
|
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.
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
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 |
|
|||
|
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.
|
|
|||
|
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. |
|
||||
|
Quote:
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
![]() |
| Tags |
| bofeof, error, doesnt, sense, help |
| Thread Tools | |
|
|
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 |