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 August 19th, 2003, 09:33 PM
Authorized User
 
Join Date: Aug 2003
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default Is there a way to retreive the number or recrods..

in an access database. I know you can use select count sql statement, but is there any other way to find the number of records using something like len(rs.fields.value) or something.

Thanks:)

 
Old August 19th, 2003, 10:17 PM
Authorized User
 
Join Date: Aug 2003
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default

And if i want to use a for loop to loop through the database...
Is there an index that i can use like

For i=0 to number of records in database
If fieldname.record(i).value = "false" then
.... do this
end if
Next


thanks again

 
Old August 19th, 2003, 10:58 PM
Registered User
 
Join Date: Aug 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Canuck
Default

I don't have your book, but I would think that a .movenext might help you out (along the lines of recordset.movenext)?

 
Old August 20th, 2003, 01:47 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 111
Thanks: 0
Thanked 0 Times in 0 Posts
Default

http://www.adopenstatic.com/faq/reco...ternatives.asp

You should use something like .GetRows() which allows you to place all your records into an array. You can get the number of records by looking at the UBound() of the array

www.adOpenStatic.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
retreive data from database eugz Beginning PHP 2 February 15th, 2006 08:45 PM
How to retreive an image from database lovelyphor ADO.NET 2 October 18th, 2004 05:43 AM
How to retreive record ... arshad mahmood SQL Server 2000 1 August 16th, 2003 01:38 AM
How to retreive record ... arshad mahmood MySQL 2 August 14th, 2003 02:18 AM
Retreive Record arshad mahmood VB Databases Basics 2 July 23rd, 2003 08:07 AM





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