Here is the pseudo code:
Turn off Warnings
Delete all data in a local table that holds folder and file names (Delete Query)
Turn warnings back on.
Use existing code to parse folders and file names (all in range) and write them into the local table.
rsLocal.AddNew
rsLocal("Folder") = code.MyFolder
rsLocal("FileName") = code.MyFile
rsLocal.Update
sSQL = "SELECT DISTINCT [Folder] FROM MyLocalTable"
Me.FolderList.RowSource = sSQL
Then on the FolderList On Click event:
Dim sValue As String
sValue = Me.FolderList.Value
sSQL = "SELECT [FileName] FROM MyLocalTable WHERE [Folder] = '" & sValue & "'"
Me.FileList.RowSource = sSQL
Did that help?
mmcdonal
Look it up at:
http://wrox.books24x7.com