If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > what is the best way to test for zero recordsets?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-23-02, 01:15
rimian rimian is offline
Registered User
 
Join Date: May 2002
Location: Australia
Posts: 26
what is the best way to test for zero recordsets?

hello!

i have been doing it this way but i'm not too sure if i am doing it right:

if rs.EOF = true and rs.BOF = true then
'for nothing returned
else
'something returned
end if


thanks in advance!
__________________
Web Developer
Reply With Quote
  #2 (permalink)  
Old 06-24-02, 00:31
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
Perfect. If you are using a client-side cursor, then you can use rs.Recordcount and depending on the database used you can determine x records returned. But if you are already using a recordset object and recordcount is not available, you are correct.
Reply With Quote
  #3 (permalink)  
Old 06-24-02, 02:57
rimian rimian is offline
Registered User
 
Join Date: May 2002
Location: Australia
Posts: 26
thanks!

i think i know what a client side cursor is. i'd like to know what else is there.

i'll work it out.

HA HA
__________________
Web Developer
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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