Home | Advertising Info150 USERS CURRENTLY ONLINE   
PowerASP
   Site Search Contact Us Wednesday, January 15, 2025  

  Active InfoActive Info  Display List of Info MembersMemberlist  Search The InfoSearch  HelpHelp
  RegisterRegister  LoginLogin
Classic ASP - Database Issues
 PowerASP Code Help Area : Classic ASP - Database Issues
Subject Info: Displaying records A d d  -  P o s tAdd P o s t
Author
Message << Prev Info | Next Info >>
Pharasite
Newbie
Newbie
Avatar

Joined: June/30/2004
Location: South Africa
Online Status: Offline
Info: 2
Added: June/30/2004 at 8:59am | IP Logged Quote Pharasite

i hav a problem to display records in a table, the problem is it's not a normal display. look at the following:

myRS.Open .....
myRS.Find("Codes LIKE '*CR21*'")

the find function finds the necessary records but as soon as i try to display them in the table it only displays one record. now let's say that the find returned 7 records found, it sould display only those 7 records. my problem is to display all 7?



__________________
life is full of surprise, specially today!
Back to Top View Pharasite's Profile Search for other info by Pharasite
 
cwilliams
Admin Group
Admin Group
Avatar

Joined: April/26/2004
Location: United States
Online Status: Offline
Info: 137
Added: June/30/2004 at 11:05am | IP Logged Quote cwilliams

It's normal for it to only show the 1st result.

You have to make a while/wend loop.. with a movenext command

If you want to see more than one record..

Like in this example

http://www.powerasp.com/content/database/select_loop.asp

 

Now, peronsally I have never used that find command like you are doing so I dont know about that. I always do all of that right in the SQL statement..



__________________


Chris Williams
http://www.PowerASP.com
Back to Top View cwilliams's Profile Search for other info by cwilliams
 
Pharasite
Newbie
Newbie
Avatar

Joined: June/30/2004
Location: South Africa
Online Status: Offline
Info: 2
Added: July/01/2004 at 3:11am | IP Logged Quote Pharasite

thnx chris, but my problem was quite simple. to display only the records the "find" function found i had to loop them out, which is quite correct. but instead it displays all the records in the table, and that's not what i wanted.

so what i did was to "Filter" the specific records out using the "While Not .. Wend" statement, which solved my problem. thnx for the help anyways.



__________________
life is full of surprise, specially today!
Back to Top View Pharasite's Profile Search for other info by Pharasite
 

If you wish to make a comment to this info you must first login
If you are not already registered you must first register

  A d d  -  P o s tAdd P o s t
Printable version Printable version

Info Jump
You cannot add new info in this area
You cannot add to info in this area
You cannot delete your info in this area
You cannot edit your info in this area
You cannot create polls in this area
You cannot vote in polls in this area

   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.

Active Server Pages ASP ASP.NET .aspx .ascx Web HTML Developer Internet Microsoft Web Services Visual Studio .NET CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspprotect.com, www.cjwsoft.com,www.aspclassifieds.com,www.aspphotogallery.com