Go Back   CodingForums.com > :: Server side development > ASP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-09-2002, 07:56 AM   PM User | #1
krnaveen
New Coder

 
Join Date: Jun 2002
Location: Delhi, India
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
krnaveen is an unknown quantity at this point
Unhappy Problem with recordsets ????

Hi! Friends,
Once again at your doorstep with another problem

as follows:-

I have four recordsets generated as per requirements

submitted by the user. I have to display the contents of

the recordsets. If the requirement of the user is not

met then the recordset remains empty. Am displaying the

contents using table in Internet Explorer. If any of the recordset remains empty then an error message is displayed that either BOF or EOF is true. If a match is found for each recordset then it works fine. I even tried imposing the if clause to check whether the number of records in each recordset is greater than 0(zero) or not. If it is then only the rows are generated, but in vain.
How to handle it ???? Thanks in advance.

-Navin.
krnaveen is offline   Reply With Quote
Old 08-09-2002, 02:37 PM   PM User | #2
Roy Sinclair
Senior Coder

 
Join Date: Jun 2002
Location: Wichita
Posts: 3,880
Thanks: 0
Thanked 0 Times in 0 Posts
Roy Sinclair will become famous soon enough
if (oRS.EOF) then
response.write('Empty record set')
else
.... insert display recordset code here
end if
Roy Sinclair is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 03:19 PM.


Advertisement
Log in to turn off these ads.