View Single Post
  #5  
Old April 22nd, 2010, 05:56 PM posted to microsoft.public.access.gettingstarted
Dirk Goldgar
external usenet poster
 
Posts: 2,529
Default fill list box with file names

"mcnews" wrote in message
...

so the file names have to go into a table before i can sort them.


Not necessarily, but it may be the easiest.

no way to let the dir() command do it. ok, i get it.


You could potentially fill an array in memory from the results of calling
the Dir() function and the FileDateTime() function in a loop, and then sort
that array, and then use a list-filling function to fill the list box from
your array. But it would involve some moderately complex coding.

--
Dirk Goldgar, MS Access MVP
Access tips: www.datagnostics.com/tips.html

(please reply to the newsgroup)