Richard S.
2006-07-28 19:04:02 UTC
When trying to sort an Access database with the following extracts of code, I
get this message: "Current provider does not support the necessary
interfaces for sorting or filtering."
What must I do to sort the records using VBA? I will appreciate any help to
be able to accomplish the sort and to understand why this does not work.
Dim rst As New ADODB.Recordset
Dim strSort As String ' String for Sort parameters
strSort = "MbrID ASC, ChgDate ASC, ActionType ASC"
rst.Open "UpdatesIn", CurrentProject.Connection, adOpenKeyset,
adLockOptimistic
rst.Sort = strSort
get this message: "Current provider does not support the necessary
interfaces for sorting or filtering."
What must I do to sort the records using VBA? I will appreciate any help to
be able to accomplish the sort and to understand why this does not work.
Dim rst As New ADODB.Recordset
Dim strSort As String ' String for Sort parameters
strSort = "MbrID ASC, ChgDate ASC, ActionType ASC"
rst.Open "UpdatesIn", CurrentProject.Connection, adOpenKeyset,
adLockOptimistic
rst.Sort = strSort