recordset::sort property

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Jul 2007
Posts: 22
Reputation: t_yalthis is an unknown quantity at this point 
Solved Threads: 0
t_yalthis t_yalthis is offline Offline
Newbie Poster

recordset::sort property

 
0
  #1
Aug 7th, 2007
hi everyone;

in my program I need to sort the recordset according to specific field, however it gives an error like "Run-time error 3251: Current provider does not support the neccessary interfaces for sorting or filtering"


rs_data.sort = "k_baslangic" 'is not working..

btw my connection code is

Set conn = New ADODB.Connection

With conn
.ConnectionString = "Provider = Microsoft.JET.OLEDB.4.0; data source = C:\Documents and Settings\kullaniciadi\Desktop\enson.mdb; persist security info = false"
.Open
End With

Set rs_data = New ADODB.Recordset
rs_data.ActiveConnection = conn
rs_data.Open "SELECT k_araba, k_baslangic, k_bitis FROM kira ORDER BY k_baslangic", conn, adOpenDynamic, adLockOptimistic

rs_data.CacheSize = 500


thanks
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 848
Reputation: QVeen72 is on a distinguished road 
Solved Threads: 120
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Practically a Posting Shark

Re: recordset::sort property

 
0
  #2
Aug 7th, 2007
Hi,

U have already used "Order By" in ur RS_Data open statement, u need not sort it again..

Or else
if u want to sort it with "Sort" method, try Using this before opening the recset:

rs_data.CursorLocation = adUseClient

Regards
Veena
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 22
Reputation: t_yalthis is an unknown quantity at this point 
Solved Threads: 0
t_yalthis t_yalthis is offline Offline
Newbie Poster

Re: recordset::sort property

 
0
  #3
Aug 7th, 2007
thanx veena...

I thought the sorting that I made in sql statement was not working at all, that's why I tried to sort again but the mistake was at the while loop that I wrote.. which is not a problem right now anymore..

thanx a lot again..
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC