hi i m getting the error "Operation is not allowed when the object is closed".Why am i getting the error??Plz help
Code:
Set rs_Temp= Server.CreateObject("ADODB.Recordset")
Set Cmd = Server.CreateObject("ADODB.Command")
Cmd.ActiveConnection = lcn_Temp
Cmd.CommandType = adCmdStoredProc
Cmd.CommandText = "sp_temp"
Cmd.Parameters.Append Cmd.CreateParameter("@strCurrDate", adVarChar, adParamInput,100, CurrEndDate)
rs_Temp.CursorLocation = 3
rs_Temp.Open Cmd