order elements of list box
Hi,
Just have a question. In my application I'm listing all the reports in a list box. This works fine. I'm populating the list with the next code that is set on the on open event of the form the list box is on:
dim Obj as AccessObject
For Each Obj in CurrentProject.AllReports
Me.lstReports.AddItem Mid(Obj.Name,4)
Next
Like I said, this works fine, but when the form opens, the reports are not sorted alphabetically. Is it possible to become the same list in a sort order that is ascending? (I guess yes, but how can I get this?)
Thanks
|