Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
opening a recordset inside another using one connection? Can I
Old 08-25-2005, 08:06 AM opening a recordset inside another using one connection? Can I
numbenator's Avatar
Webmaster Talker

Posts: 516
Location: London
Trades: 0
Hi Im Getting an error when open the secon record set in the below code.
Why is this

Code:
strSQL = "SELECT * FROM "&tabName1&" ORDER BY id"
RS.Open strSQL, Conn 

if not rs.bof or not rs.eof then
		RS.MoveFirst 
		
		do while not RS.EOF
		      
			 
			if Cint(sMonth) <> 99 and tabName1="referals" then
				strSQL = "SELECT * FROM comments where referal='"&RS("referal")&"' entryMonth="&Cint(sMonth)&" order by id"
			end if
			if Cint(sMonth) = 99  and tabName1="referals" then
				strSQL = "SELECT * FROM comments where referal='"&RS("referal")&"'"&" order by id"
			end if
			if Cint(sMonth) <> 99 and tabName1="portals" then
				strSQL = "SELECT * FROM comments where portal='"&RS("portal")&"' and entryMonth="&Cint(sMonth)&" order by id"
			end if
			if Cint(sMonth) = 99  and tabName1="portals" then
				strSQL = "SELECT * FROM comments where portal='"&RS("portal")&"'"&" order by id"
			end if
		
		    RS2.Open strSQL, Conn
                                    ' process results here namely count of records found
__________________

Please login or register to view this content. Registration is FREE

Last edited by numbenator; 08-25-2005 at 08:09 AM..
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
 
Register now for full access!
Old 08-25-2005, 08:48 AM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
and the error is?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-14-2006, 08:39 PM error
Junior Talker

Posts: 1
Trades: 0
thats the error message

ADODB.Recordseterror '800a0e78'
Operation is not allowed when the object is closed. /busca.asp, line 97
renatois is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to opening a recordset inside another using one connection? Can I
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.45822 seconds with 12 queries