Operation is not allowed when the object is closed.

Reply

Join Date: Jul 2008
Posts: 4
Reputation: friendship.ani is an unknown quantity at this point 
Solved Threads: 0
friendship.ani friendship.ani is offline Offline
Newbie Poster

Operation is not allowed when the object is closed.

 
0
  #1
Jul 23rd, 2008
hi i m getting the error "Operation is not allowed when the object is closed".Why am i getting the error??Plz help


Code:
  1. Set rs_Temp= Server.CreateObject("ADODB.Recordset")
  2. Set Cmd = Server.CreateObject("ADODB.Command")
  3. Cmd.ActiveConnection = lcn_Temp
  4. Cmd.CommandType = adCmdStoredProc
  5. Cmd.CommandText = "sp_temp"
  6. Cmd.Parameters.Append Cmd.CreateParameter("@strCurrDate", adVarChar, adParamInput,100, CurrEndDate)
  7. rs_Temp.CursorLocation = 3
  8. rs_Temp.Open Cmd
Last edited by Tekmaven; Jul 24th, 2008 at 3:19 am. Reason: Code tags
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 4
Reputation: friendship.ani is an unknown quantity at this point 
Solved Threads: 0
friendship.ani friendship.ani is offline Offline
Newbie Poster

Re: Operation is not allowed when the object is closed.

 
0
  #2
Jul 23rd, 2008
Actually recordset is open initially .When i click on a link in that page.then the recordset closes.Why is it like this?
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 133
Reputation: vicky_rawat is an unknown quantity at this point 
Solved Threads: 17
vicky_rawat's Avatar
vicky_rawat vicky_rawat is offline Offline
Junior Poster

Re: Operation is not allowed when the object is closed.

 
0
  #3
Jul 24th, 2008
Hi,

Post your whole script
Vivek Rawat
Keep solving complexities.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC