P
PeterM
I have a listbox that I'm populating with filenames from the users hard
drive. I set the Drive and Path and then issue:
myName = dir("*.*", vbNormal)
Do While myName <> ""
If myName <> "." And myName <> ".." Then
If (GetAttr(remotePath) And vbNormal) = vbNormal Then
Me.customer_files.AddItem Chr(34) & myName & Chr(34), ctr
ctr = ctr + 1
End If
End If
myName = dir
Loop
It works great but I need to sort the results. How can I sort the
resulting listbox?
Thanks in advance for your help!
drive. I set the Drive and Path and then issue:
myName = dir("*.*", vbNormal)
Do While myName <> ""
If myName <> "." And myName <> ".." Then
If (GetAttr(remotePath) And vbNormal) = vbNormal Then
Me.customer_files.AddItem Chr(34) & myName & Chr(34), ctr
ctr = ctr + 1
End If
End If
myName = dir
Loop
It works great but I need to sort the results. How can I sort the
resulting listbox?
Thanks in advance for your help!