Home | Advertising Info81 USERS CURRENTLY ONLINE   
   Site Search Contact Us Friday, March 14, 2025  
 
 


 
ASPProtect
User Management Application with web based screens that allow you to manage users.
www.ASPProtect.com
 
ASPBanner
Banner Rotation system. Advertisers can monitor online statistical reports via their web browsers.
www.ASPBanner.com
 
ASP Photo Gallery
Upload an unlimited amount of albums. Set up categories.Image resizing thumbnail creation.
www.ASPPhotoGallery.com
 
ASPClassifieds
Classifieds system. Set up categories. Users can register themselves. Supports picture uploads.
www.ASPClassifieds.com



DISCUSSION ARCHIVES
 



We didn't realize
the site was so popular.

Other Stuff
 

 
 
PowerASP active server pages asp.net microsoft .net framework sdk learn asp what is asp tutorial learn asp.net CJWSoft ASPProtect ASPBanner ASPClassifieds



(Advanced)  (Components)  (Database)  (General)  (Vbscript)




ASPProtect

 
Subject: EOF/BOF problem
From: Honna
Date: 2/16/1999 11:51:07 AM
IP: 138.87.13.205



 

I am trying to do different formating for different types of records. I have a "type" field in my
database table, which is the distinguishing criterion. I use "if" statement to select a certain
type of records. Alltogether I have 15 if statements. My code is as follows:
----------------------------------------------------------------
<%Query="select * from table1 inner join table2 on table1.key=table2.key "
Query = Query & "where table1key=" & key & ""

set Class=Connect.Execute(Query)
if (Class.eof=false and Class.bof=false) then
if Trim(Class("Type"))="type1" then%>
<some html statements>
<%end iff%>
...

if Trim(Class("Type"))="typelast" then%>
<some html statements>
<%end if%>
<%end if%>
--------------------------------------------------------------------

The problem I have is that only the records of "typelast" (which is stated in the last "if" statement)
showed up. When I tried my code other other types of records (whose types are stated in "if"
statements before the last "if" statement), the browser said
"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."

What shall I do to fix the problem? Please help me and thank you.

p.s. I have checked that the following things are true:
1. there are records in the recordset
2. recordset.cursorlocation is found to be 2
3. all types (type1 through typelast) have corresponding records

Thanks again.

Follow Up - Re: EOF/BOF problem - harlan 2/16/1999 3:56:55 PM


 

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright © 1998 - 2025 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

PowerASP active server pages asp.net microsoft .net framework sdk learn asp what is asp tutorial learn asp.net CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com