Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Multiple recordset problem

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,27008
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> Multiple recordset problem
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Multiple recordset problem - 10/17/2005 7:23:32 AM   
  nicki_bee

 

Posts: 1
Score: 0
Joined: 10/17/2005
Status: offline
Original message moved by Admin
Reason : Moved to a more appropriate category
Hello

I hope someone can help. I am trying to build a photo album and i want my index page to display the list of albums available together with a randomly selected thumbnail from the collection. I have got soemthing which i think should work however a am having a problem opening a second recordset and querying it correctly. My code is posted below. what is happening is the first recordset rsRecordSet  works fine and contains te correct records. then when i try to open te second recordset and query it   


      

this new recordset contains the data from the first recordset! i am very confused why this is happening, i though you could create multiple recordsets and one connection, am i wrong here? Any help would be much appreciated.

thank you


      
 
 
Post #: 1
 
 RE: Multiple recordset problem - 12/12/2005 12:22:57 PM   
  johnrswanton

 

Posts: 4
Score: 0
Joined: 11/16/2005
Status: offline
im not sure but i think you have to close one recordset before you open another


(in reply to nicki_bee)
 
 
Post #: 2
 
 RE: Multiple recordset problem - 12/13/2005 3:10:57 AM   
  csamuels


Posts: 42
Score: 0
Joined: 9/26/2005
Status: offline
better way to count records



      

you should be able to open two recordsets on one connection

whats your sql statement output look like?

< Message edited by csamuels -- 12/13/2005 3:14:16 AM >

(in reply to johnrswanton)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> Multiple recordset problem Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts