The following code causes this message:ADODB.Recordset error '800a0e78'
Operation is not allowed when the object is closed.
This page works fine on my computer and on anohter server. But it won't work on the server that I need it to. The differences are sql7 instead of 2000 and winNT4 instead of 2000. Should either of these be causing it? I am baffled.
Set objCommand= Server.CreateObject("ADODB.Command"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
objCommand.ActiveConnection=strConnect
strSQL="SELECT * from tblEvents where (Active=0 or Active=1) and datepart(month,startdate)=" & getMonth & " ORDER by startDate,Town" ' datepart(month,getdate() )"
strSQL="Exec spPagedItems " & page & "," & numToGet & ",'" & strSQL & "'"
objCommand.CommandText=strSQL
Set objRS= objCommand.Execute
if not objRS.EOF then
if objRS("MoreRecords"
>0 then
Response.Write "<input type='hidden' value='" & page+1 & "' />"
Response.Write " <input type='submit' value='Next page' name='Next' />"
end if
End If
Operation is not allowed when the object is closed.
This page works fine on my computer and on anohter server. But it won't work on the server that I need it to. The differences are sql7 instead of 2000 and winNT4 instead of 2000. Should either of these be causing it? I am baffled.
Set objCommand= Server.CreateObject("ADODB.Command"
objCommand.ActiveConnection=strConnect
strSQL="SELECT * from tblEvents where (Active=0 or Active=1) and datepart(month,startdate)=" & getMonth & " ORDER by startDate,Town" ' datepart(month,getdate() )"
strSQL="Exec spPagedItems " & page & "," & numToGet & ",'" & strSQL & "'"
objCommand.CommandText=strSQL
Set objRS= objCommand.Execute
if not objRS.EOF then
if objRS("MoreRecords"
Response.Write "<input type='hidden' value='" & page+1 & "' />"
Response.Write " <input type='submit' value='Next page' name='Next' />"
end if
End If