Code:
Set adoConn = OpenConnection
adoRS.CursorLocation = adUseClient
strSQL = "exec sp_SearchData '" & Request.Form("Keyword") & "'"
adoRS.Open strSQL, adoConn, adOpenForwardOnly, adLockReadOnly
'number of rows to cache at a time. Should be set to the same as PageSize
adoRS.CacheSize = CLng(PageSize)
'number of items to display per 'page'
adoRS.PageSize = CLng(PageSize)
On Error GoTo ErrorOut
'get the number of pages
NumPages = adoRS.PageCount
When I run the SQL code separately, a row is returned. However, when I plug in the statement with the application, adoRS.PageCount isn't retrieved and its says Operation is not allowed when the object is closed.
Any insights??????
rsshetty.
It's always in the details.