Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2014
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. Function SortByYear(ByVal z As DAO.Recordset) As String
  2. Dim mySortedRS As DAO.Recordset
  3. z.Sort = "Year"
  4. Set mySortedRS = z
  5. Do
  6. Debug.Print mySortedRS!Year
  7. mySortedRS.MoveNext
  8. Loop Until mySortedRS.EOF
  9. Set mySortedRS = Nothing
  10. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement