Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 4th, 2005, 05:13 AM
Authorized User
 
Join Date: Dec 2004
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to shankhan Send a message via Yahoo to shankhan
Default help about record set

hi,
plz have a look at my code following:
contacts = "exec smvcontacts '" & request.form("tehid") & "'"
set contacts_rs = conn.execute(contacts)

now i want to check whether contacts_rs record set have fetched any record or not. how can i check? because my if it has fetched any record against the procedure then i'll call this recordset otherwise i'll not call this recordset. bcause when record set has no record it in, browser shows me the error msg
Error Type:
ADODB.Field (0x80020009)
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.

can any1 help me.

 
Old June 5th, 2005, 10:51 PM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

You can check for EOF:

If contacts_rs.EOF Then
 'No records found..
else
 'Records found..
End if

Om Prakash





Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible Emty Record Set englandera Classic ASP Databases 2 November 24th, 2004 01:37 PM
Inserting A Record Set nikotromus Access VBA 3 September 14th, 2004 01:23 PM
dynamicly name a record set mat41 Classic ASP Professional 6 March 16th, 2004 03:50 AM
ADO Record Set Question virtualdave Pro VB Databases 4 February 20th, 2004 12:21 PM
record set problem spraveens Classic ASP Databases 6 September 12th, 2003 06:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.