Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recordset sorting.

Status
Not open for further replies.

mgid

Programmer
Oct 2, 2000
87
US
I'm trying to sort a recordset and I keep getting the following error:

"Current provider does not support the necessary interfaces for sorting or filtering."

I've tried it several different ways and the same error keeps coming up.

Thanks.
 
I'm returning the recordset from a component. Data is retrieved and writes to the page fine except when the sort method is called. Here's my code abbreviated:

Dim objCalls, objRS
Set objCalls Server.CreateObject("helpdesk.Calls")
Set objRS = Server.CreateObject("ADODB.Recordset")
objCalls.OpenCalls boolOpen, strSort, objRS, date_start, date_end

If blah, blah
objRS.Sort = "mystring"
End if
 
Thanks, that worked.

I think I tried to set that property in the asp page earlier, but it didn't work. It did work when I set the property in the component that returns the recordset.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top