| | |
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:
Solved Threads: 0
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
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
![]() |
Similar Threads
- Selection Sort in java (Java)
- How to change the currect recordset in a Form (Visual Basic 4 / 5 / 6)
- class module database (Visual Basic 4 / 5 / 6)
- Listboxes and scroll bars (Visual Basic 4 / 5 / 6)
- Insertion Sort Problem (C++)
- Datagrid - no value at index ### error when scroll and sort (VB.NET)
- Adodb=adodc??? (Visual Basic 4 / 5 / 6)
- how to sort out 'active directory cannot be found in cache' error (Visual Basic 4 / 5 / 6)
- Some help needed with Selection Sort in java, Please!! (Java)
- instrumenting an application in .NET (ASP.NET)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: about data report
- Next Thread: Write/ Read an object
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





but the mistake was at the while loop that I wrote.. which is not a problem right now anymore..