its not VB code......but a SQL statement......maybe you can tell us if your using Access, SQL Server....etc. There are so many ways to sort data by a field
'''''''''''''''''''''''''''''''''''''''''
Dim sSQL as String
'Ascending
sSQL = "SELECT * FROM YOUR_TABLE ORDER BY YOUR_FIELD"
'Descending
sSQL = "SELECT * FROM YOUR_TABLE ORDER BY YOUR_FIELD DESC"
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.