S
Sam
Hi folks,
I have two Listboxes - lbAvailablePersons and lbSelectedPersons. When
form opens lbAvailablePersons is populated using the rowsource from the
listbox's properties, i have there the following sql:
SELECT tblPerson.SupportedPersonID, "" & [surname] & ", " & [firstname]
& " " & [middlename] & "" AS Expr1 FROM tblPerson ORDER BY
tblPerson.SurName;
lbSelectedPerson is populated via pbAddPerson, code is:
Call AddToListBox(ListPersonsAvailable, ListPersonsSelected, strDebug,
strDebugAlt, itm)
..
My problem is that lbSelectedPersons is not sorted.
My question is how do i sort the second listbox?
Thanks for any help or hints!
Sam
I have two Listboxes - lbAvailablePersons and lbSelectedPersons. When
form opens lbAvailablePersons is populated using the rowsource from the
listbox's properties, i have there the following sql:
SELECT tblPerson.SupportedPersonID, "" & [surname] & ", " & [firstname]
& " " & [middlename] & "" AS Expr1 FROM tblPerson ORDER BY
tblPerson.SurName;
lbSelectedPerson is populated via pbAddPerson, code is:
Call AddToListBox(ListPersonsAvailable, ListPersonsSelected, strDebug,
strDebugAlt, itm)
..
My problem is that lbSelectedPersons is not sorted.
My question is how do i sort the second listbox?
Thanks for any help or hints!
Sam